X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fstream_out%2Fstandard.c;h=72b97e73f11baefbef960555fc75031abeaa9820;hb=b007760f41853126ff0e1d8a7329db38d581a3d8;hp=09fa0448e72ddb0dc804075d13754adb3204227d;hpb=98e9da7b1a9f9d4475189985ad21b1aad0c1d550;p=vlc diff --git a/modules/stream_out/standard.c b/modules/stream_out/standard.c index 09fa0448e7..72b97e73f1 100644 --- a/modules/stream_out/standard.c +++ b/modules/stream_out/standard.c @@ -278,6 +278,7 @@ static int Open( vlc_object_t *p_this ) else { msg_Err( p_stream, "no access _and_ no muxer (fatal error)" ); + free( p_sys ); return VLC_EGENERIC; } } @@ -300,6 +301,7 @@ static int Open( vlc_object_t *p_this ) else { msg_Err( p_stream, "no mux specified or found by extension" ); + free( p_sys ); return VLC_EGENERIC; } } @@ -368,6 +370,7 @@ static int Open( vlc_object_t *p_this ) psz_access, psz_mux, psz_url ); free( psz_access ); free( psz_mux ); + free( p_sys ); return VLC_EGENERIC; } msg_Dbg( p_stream, "access opened" ); @@ -382,6 +385,7 @@ static int Open( vlc_object_t *p_this ) sout_AccessOutDelete( p_access ); free( psz_access ); free( psz_mux ); + free( p_sys ); return VLC_EGENERIC; } msg_Dbg( p_stream, "mux opened" );