Skip to content
Snippets Groups Projects
Commit 5d39023f authored by Marek Vavruša's avatar Marek Vavruša
Browse files

zone-events: mem_trim after zone expire

parent 1605a2a3
No related branches found
No related tags found
No related merge requests found
......@@ -446,9 +446,6 @@ static int event_expire(zone_t *zone)
zone_contents_t *expired = zone_switch_contents(zone, NULL);
synchronize_rcu();
/* Trim extra heap. */
mem_trim();
/* Expire zonefile information. */
zone->zonefile_mtime = 0;
zone->zonefile_serial = 0;
......@@ -456,6 +453,9 @@ static int event_expire(zone_t *zone)
log_zone_info("Zone '%s' expired.\n", zone->conf->name);
/* Trim extra heap. */
mem_trim();
return KNOT_EOK;
}
......
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