Commit cd7b0f36 authored by Mark Andrews's avatar Mark Andrews Committed by Evan Hunt
Browse files

cleanup allocated memory on error

(cherry picked from commit 4979d5f3)
parent 799708f5
Pipeline #6876 passed with stages
in 8 minutes and 5 seconds
......@@ -654,7 +654,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 */
......
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