Commit 247ac6c4 authored by Vladimír Čunát's avatar Vladimír Čunát

utils: fix coverity warning 155456

I think the memory wouldn't really leak, due to being on a per-request
mempool, but it still seems better to do this properly.
parent d0193ef2
......@@ -450,6 +450,7 @@ int kr_ranked_rrarray_add(ranked_rr_array_t *array, const knot_rrset_t *rr,
knot_rrset_t *copy = knot_rrset_copy(rr, pool);
if (!copy) {
mm_free(pool, entry);
return kr_error(ENOMEM);
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