From 2217f49d1fb538e0c4f8de6e8b556969a9da0600 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 13 Mar 2012 21:37:22 +0100 Subject: Fix double free after parse failure --- common/config-parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/config-parser.c b/common/config-parser.c index a76e9c2..79bead9 100644 --- a/common/config-parser.c +++ b/common/config-parser.c @@ -314,7 +314,7 @@ parse_dir_internal(const char* subdir, void* data) if(!is_reg && !is_lnk) continue; - /* Build a happy path name */ + memory = NULL; cfg_parse_file(path, data, &memory); /* We call it with blanks after files */ -- cgit v1.2.3