From b007760f41853126ff0e1d8a7329db38d581a3d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Thu, 31 Jul 2008 14:57:28 +0200 Subject: [PATCH] Stream out: fix memleak. --- modules/stream_out/standard.c | 4 ++++ 1 file changed, 4 insertions(+) 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" ); -- 2.39.2