return p_sout;
}
- free( psz_chain );
msg_Err( p_sout, "stream chain failed for `%s'", psz_chain );
+ free( psz_chain );
FREENULL( p_sout->psz_sout );
if( !p_stream->p_module )
{
+ /* those must be freed by the caller if creation failed */
+ p_stream->psz_name = NULL;
+ p_stream->p_cfg = NULL;
+
sout_StreamDelete( p_stream );
return NULL;
}