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

Fixed potential leaks in semantic-check.c.

- Coverity 743237, 743235
parent a924f9e3
No related branches found
No related tags found
No related merge requests found
......@@ -857,6 +857,7 @@ static int check_nsec3_node_in_zone(knot_zone_contents_t *zone,
next_dname_size, &next_dname_decoded);
if (real_size <= 0 || next_dname_decoded == NULL) {
dbg_semcheck("Could not encode base32 string!\n");
free(next_dname_decoded);
return KNOT_ERROR;
}
......@@ -1439,6 +1440,7 @@ void log_cyclic_errors_in_zone(err_handler_t *handler,
next_dname_size, &next_dname_decoded);
if (real_size <= 0 || next_dname_decoded == NULL) {
dbg_semcheck("Could not encode base32 string!\n");
free(next_dname_decoded);
return;
}
......
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