[vlc-commits] config: fix memory leak
Hannes Domani
git at videolan.org
Thu Jul 2 22:15:13 CEST 2015
vlc/vlc-2.2 | branch: master | Hannes Domani <ssbssa at yahoo.de> | Thu Jul 2 18:41:59 2015 +0200| [b8df53b4e344485ffae13d366496247d795df75c] | committer: Rémi Denis-Courmont
config: fix memory leak
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit 2f6b105a79e4fcdf08d09caaf4d1dafe5ec470bb)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=b8df53b4e344485ffae13d366496247d795df75c
---
src/config/core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/config/core.c b/src/config/core.c
index 9882c52..7eaa865 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