From: RĂ©mi Duraffort Date: Thu, 31 Jul 2008 12:57:28 +0000 (+0200) Subject: Stream out: fix memleak. X-Git-Tag: 0.9.0-test3~115 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b007760f41853126ff0e1d8a7329db38d581a3d8;p=vlc Stream out: fix memleak. --- 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" );