Commit 7a80a524 authored by Marek Vavrusa's avatar Marek Vavrusa

Fixed memory leak.

parent 06753bc7
......@@ -2127,6 +2127,7 @@ static int zones_dump_zone_text(knot_zone_contents_t *zone, const char *fname)
char *new_fname = NULL;
int fd = zones_open_free_filename(fname, &new_fname);
if (fd < 0) {
free(new_fname);
return KNOT_EWRITABLE;
}
......
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