From: Mark Andrews Date: Fri, 16 Nov 2018 03:42:22 +0000 (+1100) Subject: cleanup allocated memory on error X-Git-Tag: v9.13.4~9^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4979d5f31fa3de6905421e8e38e3af2543eb57b4;p=thirdparty%2Fbind9.git cleanup allocated memory on error --- diff --git a/contrib/dlz/drivers/dlz_filesystem_driver.c b/contrib/dlz/drivers/dlz_filesystem_driver.c index 0b1c4ab0768..9fa03806807 100644 --- a/contrib/dlz/drivers/dlz_filesystem_driver.c +++ b/contrib/dlz/drivers/dlz_filesystem_driver.c @@ -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 */