Commit 3bf3fdac authored by Rémi Duraffort's avatar Rémi Duraffort

Fix potential memory leak.

parent a3108f6f
......@@ -1025,6 +1025,7 @@ static int Capture( demux_t *p_demux )
if ( read( p_sys->i_vfd, p_buffer, p_sys->i_vbuffer_size ) < 0 )
{
msg_Warn( p_demux, "couldn't read %s", strerror(errno) );
free( p_buffer );
return VLC_EGENERIC;
}
......@@ -1069,6 +1070,7 @@ static int Capture( demux_t *p_demux )
if ( read( p_sys->i_afd, p_buffer, p_sys->i_abuffer_size ) < 0 )
{
msg_Warn( p_demux, "couldn't read %s", strerror(errno) );
free( p_buffer );
return VLC_EGENERIC;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment