[vlc-commits] access: zip: fix leak (cid #1048907)
Francois Cartegnie
git at videolan.org
Thu Apr 17 14:11:36 CEST 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Apr 16 23:40:48 2014 +0200| [9fc1391b92cde90f21865c5e453a4c00959e2895] | committer: Francois Cartegnie
access: zip: fix leak (cid #1048907)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9fc1391b92cde90f21865c5e453a4c00959e2895
---
modules/access/zip/zipstream.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/access/zip/zipstream.c b/modules/access/zip/zipstream.c
index 3e7032b..6a340cc 100644
--- a/modules/access/zip/zipstream.c
+++ b/modules/access/zip/zipstream.c
@@ -439,6 +439,8 @@ static int GetFilesInZip( stream_t *p_this, unzFile file,
!= UNZ_OK )
{
msg_Warn( p_this, "can't get info about file in zip" );
+ free( psz_fileName );
+ free( p_fileInfo );
return VLC_EGENERIC;
}
More information about the vlc-commits
mailing list