[vlc-devel] [PATCH] access/directory.c: Fix a potential memleak
Julien 'Lta' BALLET
elthariel at gmail.com
Mon Jul 7 17:43:35 CEST 2014
From: Julien 'Lta' BALLET <contact at lta.io>
---
modules/access/directory.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/access/directory.c b/modules/access/directory.c
index f4c6107..c10cd96 100644
--- a/modules/access/directory.c
+++ b/modules/access/directory.c
@@ -398,6 +398,7 @@ int DirRead (access_t *p_access, input_item_node_t *p_current_node)
if (psz_uri == NULL
|| asprintf (&psz_full_uri, "%s/%s", p_current->uri, psz_uri) == -1)
{
+ free (psz_uri);
closedir (handle);
continue;
}
--
2.0.0
More information about the vlc-devel
mailing list