Commit acd2b4ef authored by Tristan Matthews's avatar Tristan Matthews Committed by Jean-Baptiste Kempf

input: fix use after free

(cherry picked from commit e345ccc4ed2ed312793ff00efdd2bc572d845461)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7014a4c1
......@@ -2415,7 +2415,6 @@ static int InputSourceInit( input_thread_t *p_input,
if( in->p_demux == NULL )
{
stream_Delete( p_stream );
if( vlc_object_alive( p_input ) )
{
msg_Err( p_input, "no suitable demux module for `%s/%s://%s'",
......@@ -2426,6 +2425,7 @@ static int InputSourceInit( input_thread_t *p_input,
_("The format of '%s' cannot be detected. "
"Have a look at the log for details."), psz_mrl );
}
stream_Delete( p_stream );
goto error;
}
assert( in->p_demux->pf_demux != NULL );
......
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