Commit fa2358f9 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

avi: Don't leak in error code path.

parent fb96d6f7
......@@ -280,6 +280,7 @@ static int Open( vlc_object_t * p_this )
if( AVI_ChunkReadRoot( p_demux->s, &p_sys->ck_root ) )
{
msg_Err( p_demux, "avi module discarded (invalid file)" );
free(p_sys);
return VLC_EGENERIC;
}
......
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