[vlc-commits] config: fix memory leak
Hannes Domani
git at videolan.org
Thu Jul 2 22:14:24 CEST 2015
vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Thu Jul 2 18:41:59 2015 +0200| [2f6b105a79e4fcdf08d09caaf4d1dafe5ec470bb] | committer: Rémi Denis-Courmont
config: fix memory leak
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2f6b105a79e4fcdf08d09caaf4d1dafe5ec470bb
---
src/config/core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/config/core.c b/src/config/core.c
index de675c3..322b5f0 100644
--- a/src/config/core.c
+++ b/src/config/core.c
@@ -387,6 +387,7 @@ static ssize_t config_ListModules (const char *cap, char ***restrict values,
if (n <= 0)
{
*values = *texts = NULL;
+ module_list_free (list);
return n;
}
@@ -408,6 +409,7 @@ static ssize_t config_ListModules (const char *cap, char ***restrict values,
*values = vals;
*texts = txts;
+ module_list_free (list);
return n + 2;
}
More information about the vlc-commits
mailing list