Fix config file memory leak

This commit is contained in:
Martin Lund 2022-06-12 00:44:52 +02:00
parent 94485ec9ac
commit 16c42bb9ae

View file

@ -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