Commit 1900d841 authored by Daniel Salzman's avatar Daniel Salzman

conf: fix memory leak

parent 32f84cf8
...@@ -346,6 +346,7 @@ conf_t *conf_update( ...@@ -346,6 +346,7 @@ conf_t *conf_update(
conf->io.zones = s_conf->io.zones; conf->io.zones = s_conf->io.zones;
} }
if ((flags & CONF_UPD_FMODULES) && s_conf != NULL) { if ((flags & CONF_UPD_FMODULES) && s_conf != NULL) {
mm_free(conf->mm, conf->query_modules);
conf->query_modules = s_conf->query_modules; conf->query_modules = s_conf->query_modules;
conf->query_plan = s_conf->query_plan; conf->query_plan = s_conf->query_plan;
} }
......
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