[vlc-commits] demux: avi: fix potential leaks
Francois Cartegnie
git at videolan.org
Sun Nov 13 21:01:04 CET 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Nov 13 20:03:47 2016 +0100| [810ec7b3b7e5db7447b34070bb56fa5181d8aef4] | committer: Francois Cartegnie
demux: avi: fix potential leaks
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=810ec7b3b7e5db7447b34070bb56fa5181d8aef4
---
modules/demux/avi/avi.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 1f393d7..95a273d 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -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;
}
More information about the vlc-commits
mailing list