]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
cleanup allocated memory on error
authorMark Andrews <marka@isc.org>
Fri, 16 Nov 2018 03:42:22 +0000 (14:42 +1100)
committerEvan Hunt <each@isc.org>
Fri, 16 Nov 2018 23:00:36 +0000 (18:00 -0500)
contrib/dlz/drivers/dlz_filesystem_driver.c

index 0b1c4ab07684c7fafb8c5bbd1d3dd4023d21b79d..9fa03806807cd53f47a718b8f5d5981e2d877d67 100644 (file)
@@ -655,7 +655,8 @@ fs_allnodes(const char *zone, void *driverarg, void *dbdata,
        ISC_LIST_INIT(*dir_list);
 
        if (create_path(zone, NULL, NULL, cd, &basepath) != ISC_R_SUCCESS) {
-               return (ISC_R_NOTFOUND);
+               result = ISC_R_NOTFOUND;
+               goto complete_allnds;
        }
 
        /* remove path separator at end of path so stat works properly */