[vlc-commits] core: config: Fix leak on error

Hugo Beauzée-Luyssen git at videolan.org
Thu Aug 23 10:09:04 CEST 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Aug 23 09:57:15 2018 +0200| [3fc25197fa809428a3f555741cca1e3b8dfd6436] | committer: Hugo Beauzée-Luyssen

core: config: Fix leak on error

CID #1062584

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

 src/config/core.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/config/core.c b/src/config/core.c
index 0c9e4184f5..b1904e1f64 100644
--- a/src/config/core.c
+++ b/src/config/core.c
@@ -306,6 +306,7 @@ error:
     }
     free(vals);
     free(txts);
+    module_list_free (list);
     *values = *texts = NULL;
     return -1;
 }



More information about the vlc-commits mailing list