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

fixed minor memleak when zone-in-journal serialization fails

parent 161f99f9
No related branches found
No related tags found
1 merge request!1385Xfr failovers
Pipeline #90849 passed
/* Copyright (C) 2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
/* Copyright (C) 2021 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -242,6 +242,9 @@ void serialize_deinit(serialize_ctx_t *ctx)
if (ctx->it.node != NULL) {
changeset_iter_clear(&ctx->it);
}
if (ctx->zit.tree != NULL) {
zone_tree_it_free(&ctx->zit);
}
free(ctx);
}
......
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