Commit c30c713d authored by Daniel Salzman's avatar Daniel Salzman
Browse files

refresh: fix possible memory leak (Coverity)

parent 35358b20
Pipeline #32362 passed with stages
in 12 minutes and 45 seconds
......@@ -529,7 +529,7 @@ static int ixfr_solve_soa_del(const knot_rrset_t *rr, struct refresh_data *data)
// Store SOA into changeset.
change->soa_from = knot_rrset_copy(rr, NULL);
if (change->soa_from == NULL) {
changeset_clear(change);
changeset_free(change);
return KNOT_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