Commit eb5cfc48 authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman

bugfix: little leak when unsuccessful journal load

parent bc7f4f82
......@@ -124,7 +124,7 @@ int zone_load_from_journal(conf_t *conf, zone_t *zone, zone_contents_t **content
journal_read_t *read = NULL;
int ret = journal_read_begin(zone_journal(zone), true, 0, &read);
if (ret == KNOT_ENOENT) {
zone_contents_free(*contents);
zone_contents_deep_free(*contents);
return ret;
}
......
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