Skip to content
Snippets Groups Projects
Commit eb5cfc48 authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman
Browse files

bugfix: little leak when unsuccessful journal load

parent bc7f4f82
No related branches found
No related tags found
1 merge request!988Implementation of COW trie for zone updates
......@@ -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;
}
......
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