Commit 32db61c1 authored by Mark Lindner's avatar Mark Lindner

Fixed slow leak in config_destroy()

parent 40f11f25
...@@ -717,7 +717,8 @@ int config_write_file(config_t *config, const char *filename) ...@@ -717,7 +717,8 @@ int config_write_file(config_t *config, const char *filename)
void config_destroy(config_t *config) void config_destroy(config_t *config)
{ {
config_clear(config); __config_setting_destroy(config->root);
__delete_vec(config->filenames);
__delete(config->include_dir); __delete(config->include_dir);
__zero(config); __zero(config);
} }
......
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