Commit 84f41b3a authored by Rémi Duraffort's avatar Rémi Duraffort Committed by Jean-Baptiste Kempf

Fix potential memory leak.

(cherry picked from commit 816e52c8)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 882b1c34
......@@ -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 );
......
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