Skip to content
Snippets Groups Projects
Commit 5bcab1cb authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Free old conf only if it changes (fixes previous commit).

parent 4ed7ed0b
No related branches found
No related tags found
No related merge requests found
......@@ -250,8 +250,9 @@ static void zonedata_update(knot_zone_t *zone, conf_zone_t *conf,
assert(zd);
// data pointers
conf_zone_t *old_conf = zd->conf;
if (old_conf != conf) {
conf_zone_t *old_conf = NULL;
if (zd->conf != conf) {
old_conf = zd->conf;
zd->conf = conf;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment