Commit 841903a6 authored by Gildas Bazin's avatar Gildas Bazin

* modules/demux/mjpeg.c: fixed small memleak.

parent 12535c3e
...@@ -234,12 +234,16 @@ static vlc_bool_t CheckMimeHeader( demux_t *p_demux, int *p_header_size ) ...@@ -234,12 +234,16 @@ static vlc_bool_t CheckMimeHeader( demux_t *p_demux, int *p_header_size )
free( psz_line ); free( psz_line );
psz_line = GetLine( p_demux, &i_pos ); psz_line = GetLine( p_demux, &i_pos );
} }
if( NULL == psz_line ) if( NULL == psz_line )
{ {
msg_Err( p_demux, "no EOL" ); msg_Err( p_demux, "no EOL" );
*p_header_size = -3; *p_header_size = -3;
return VLC_FALSE; return VLC_FALSE;
} }
free( psz_line );
*p_header_size = i_pos; *p_header_size = i_pos;
return b_jpeg; return b_jpeg;
} }
......
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