From 02b42c8446ede230190b713e56be54c034f000ca Mon Sep 17 00:00:00 2001 From: Moritz Grimm Date: Mon, 18 May 2015 23:36:43 +0200 Subject: [PATCH] Plug memory leak --- src/cfg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cfg.c b/src/cfg.c index 873ef3f..5bf700e 100644 --- a/src/cfg.c +++ b/src/cfg.c @@ -137,6 +137,7 @@ cfg_reload(void) /* roll back */ _cfg_reset(&cfg); _cfg_copy(&cfg, &cfg_tmp); + _cfg_reset(&cfg_tmp); return (-1); } _cfg_reset(&cfg_tmp);