]> git.sesse.net Git - vlc/commitdiff
zipstream: fix potential memleak.
authorRémi Duraffort <ivoire@videolan.org>
Tue, 10 Mar 2009 13:59:55 +0000 (14:59 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Thu, 12 Mar 2009 12:16:59 +0000 (13:16 +0100)
modules/access/zip/zipstream.c

index 9616f3e1c7257e0b716f5b9213e261850b69da5d..c29d11f064c9516c713bb236eae76037f7ef67bd 100644 (file)
@@ -424,7 +424,8 @@ static int GetFilesInZip( stream_t *p_this, unzFile file,
 
         if( !p_fileInfo || !psz_fileName )
         {
-            msg_Warn( p_this, "not enough memory" );
+            free( psz_fileName );
+            free( p_fileInfo );
             return VLC_ENOMEM;
         }