Commit eee0caf1 authored by Rémi Duraffort's avatar Rémi Duraffort

Fix potential NULL pointer deref (cid #1049834)

parent 7daf8297
......@@ -1102,8 +1102,11 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
return VLC_SUCCESS;
oom:
if(p_stream)
{
free(p_stream->lang);
free(p_stream);
}
return VLC_ENOMEM;
}
......
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