Commit 25629dc1 authored by Mark Lindner's avatar Mark Lindner

Fixed double-free of config->filenames (heap corruption)

parent 5ea44621
......@@ -731,7 +731,9 @@ void config_clear(config_t *config)
{
/* Destroy the root setting (recursively) and then create a new one. */
__config_setting_destroy(config->root);
libconfig_strvec_delete(config->filenames);
config->filenames = NULL;
config->root = __new(config_setting_t);
config->root->type = CONFIG_TYPE_GROUP;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment