Skip to content
Snippets Groups Projects
Commit 046d7b16 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

Fixed potential leak in ddns.c.

- Coverity: 989584
parent 23f37cff
No related branches found
No related tags found
No related merge requests found
......@@ -1935,7 +1935,10 @@ static int knot_ddns_process_rem_rrsigs(knot_node_t *node,
short rrset_count = knot_node_rrset_count(node);
*removed = malloc(rrset_count * sizeof(knot_rrset_t *));
CHECK_ALLOC_LOG(*removed, KNOT_ENOMEM);
if (*removed == NULL) {
ERR_ALLOC_FAILED;
free(rrsets);
}
*removed_count = 0;
/* Remove all the RRSets from the node, so that we may insert the copies
......
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