Commit ea6ace7d authored by Bob Halley's avatar Bob Halley
Browse files

fix memory leak

parent 7cfb2cec
......@@ -108,10 +108,13 @@ main(int argc, char *argv[]) {
value.as_pointer = mem_strdup(mctx, cp);
result = isc_symtab_define(st, key, 1, value,
exists_policy);
if (trace || result != ISC_R_SUCCESS)
if (trace || result != ISC_R_SUCCESS) {
printf("define('%s', '%s'): %s\n",
key, cp,
isc_result_totext(result));
if (result != ISC_R_SUCCESS)
undefine_action(key, 1, value);
}
}
}
}
......
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