From 16c42bb9ae845bbfd7373baedd98410faead1512 Mon Sep 17 00:00:00 2001 From: Martin Lund Date: Sun, 12 Jun 2022 00:44:52 +0200 Subject: [PATCH] Fix config file memory leak --- src/configfile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/configfile.c b/src/configfile.c index 143f0d2..266c3ac 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -323,6 +323,7 @@ void config_file_parse(void) fprintf(stderr, "Error: Unable to parse configuration file (%d)", ret); exit(EXIT_FAILURE); } + free(c->section_name); c->section_name = NULL; // Find matching section