[vlc-commits] Fix potential memory leak.
Rémi Duraffort
git at videolan.org
Wed Aug 29 19:27:02 CEST 2012
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Aug 29 19:09:56 2012 +0200| [816e52c8f10798ed014b36362b846a0f46a3358e] | committer: Rémi Duraffort
Fix potential memory leak.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=816e52c8f10798ed014b36362b846a0f46a3358e
---
src/stream_output/stream_output.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/stream_output/stream_output.c b/src/stream_output/stream_output.c
index 0749c16..9587cf7 100644
--- a/src/stream_output/stream_output.c
+++ b/src/stream_output/stream_output.c
@@ -100,7 +100,10 @@ sout_instance_t *sout_NewInstance( vlc_object_t *p_parent, const char *psz_dest
/* *** Allocate descriptor *** */
p_sout = vlc_custom_create( p_parent, sizeof( *p_sout ), "stream output" );
if( p_sout == NULL )
+ {
+ free( psz_chain );
return NULL;
+ }
msg_Dbg( p_sout, "using sout chain=`%s'", psz_chain );
More information about the vlc-commits
mailing list