Commit c5c81d88 authored by Jean-Paul Saman's avatar Jean-Paul Saman Committed by Jean-Paul Saman

Check malloc return value.

parent ff1e46cc
......@@ -520,6 +520,11 @@ sout_input_t *sout_MuxAddStream( sout_mux_t *p_mux, es_format_t *p_fmt )
/* create a new sout input */
p_input = malloc( sizeof( sout_input_t ) );
if( !p_input )
{
msg_Err( p_mux, "out of memory" );
return NULL;
}
p_input->p_sout = p_mux->p_sout;
p_input->p_fmt = p_fmt;
p_input->p_fifo = block_FifoNew( p_mux->p_sout );
......
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