[vlc-devel] [PATCH] access/zip:patch for memory leak in zipstream.c #8726
Gaurav Pruthi
gaurav.pruthi88 at gmail.com
Mon Nov 25 11:49:38 CET 2013
---
modules/access/zip/zipstream.c | 4+++-
1 file changed, 3 insertion(+), 1 deletion(-)
diff --git a/modules/access/zip/zipstream.c b/modules/access/zip/zipstream.c
index d12bd29..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;
}
--
1.7.9.5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20131125/dbea3460/attachment.html>
More information about the vlc-devel
mailing list