Commit 810ec7b3 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: avi: fix potential leaks

parent 28632f8a
......@@ -511,6 +511,7 @@ static int Open( vlc_object_t * p_this )
fmt.p_extra = malloc( i_extra );
if( unlikely(fmt.p_extra == NULL) )
{
es_format_Clean( &fmt );
free( tk );
goto error;
}
......@@ -641,6 +642,7 @@ static int Open( vlc_object_t * p_this )
fmt.p_extra = malloc( i_extra );
if( unlikely(fmt.p_extra == NULL) )
{
es_format_Clean( &fmt );
free( tk );
goto error;
}
......
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