Skip to content
Snippets Groups Projects
Commit 4dea452f authored by Daniel Salzman's avatar Daniel Salzman
Browse files

conf: fix potential memory leak

parent 87f60382
No related branches found
No related tags found
No related merge requests found
......@@ -963,6 +963,7 @@ static char* get_filename(
if (block == NULL ||
strlcat(out, block, sizeof(out)) >= sizeof(out)) {
CONF_LOG_ZONE(LOG_WARNING, zone, "too long zonefile name");
free(block);
return NULL;
}
free(block);
......
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