mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 11:50:00 -04:00
fix memory leak
This commit is contained in:
parent
7cfb2cec61
commit
ea6ace7d0d
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue