Commit 867d4d48 authored by Daniel Salzman's avatar Daniel Salzman

conf: fix heap-use-after-free if a module loaded within include

parent 86dd2ee1
......@@ -611,7 +611,6 @@ int conf_parse(
ret = check_ret;
conf_mod_load_purge(conf, false);
......@@ -650,6 +649,8 @@ int conf_import(
goto import_error;
// Load purge must be here as conf_parse may be called recursively!
conf_mod_load_purge(conf, false);
// Commit new configuration.
ret = conf->api->txn_commit(&txn);
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