[vlc-commits] access/zip:patch for memory leak in zipstream.c #8726

Gaurav Pruthi git at videolan.org
Sun Dec 1 22:28:33 CET 2013


vlc | branch: master | Gaurav Pruthi <gaurav.pruthi88 at gmail.com> | Mon Nov 25 09:49:38 2013 +0000| [c8f1ef479cc7194465ad687f88f79c2f1fabe756] | committer: Jean-Baptiste Kempf

access/zip:patch for memory leak in zipstream.c #8726

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c8f1ef479cc7194465ad687f88f79c2f1fabe756
---

 modules/access/zip/zipstream.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/access/zip/zipstream.c b/modules/access/zip/zipstream.c
index 85e93d4..3e7032b 100644
--- a/modules/access/zip/zipstream.c
+++ b/modules/access/zip/zipstream.c
@@ -717,7 +717,9 @@ static node* findOrCreateParentNode( node *root, const char *fullpath )
         if( !strcmp( current->name, folder ) )
         {
             /* We found the folder, go recursively deeper */
-            return findOrCreateParentNode( current, sep );
+            node *parentNode = findOrCreateParentNode( current, sep );
+            free( path );
+            return parentNode;
         }
         current = current->next;
     }



More information about the vlc-commits mailing list