Commit c35af423 authored by Rafaël Carré's avatar Rafaël Carré

Check malloc return value

parent f4bdd3ef
...@@ -214,6 +214,7 @@ sout_packetizer_input_t *sout_InputNew( sout_instance_t *p_sout, ...@@ -214,6 +214,7 @@ sout_packetizer_input_t *sout_InputNew( sout_instance_t *p_sout,
/* *** create a packetizer input *** */ /* *** create a packetizer input *** */
p_input = malloc( sizeof( sout_packetizer_input_t ) ); p_input = malloc( sizeof( sout_packetizer_input_t ) );
if( !p_input ) return NULL;
p_input->p_sout = p_sout; p_input->p_sout = p_sout;
p_input->p_fmt = p_fmt; p_input->p_fmt = p_fmt;
......
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