g10: Avoid a memory leak.

* g10/gpg.c (main): Free KB when we're done with it.

Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
Neal H. Walfield 2016-12-06 12:14:49 +01:00
parent db6d8cfdc1
commit 6102099985
1 changed files with 2 additions and 0 deletions

View File

@ -4845,6 +4845,8 @@ main (int argc, char **argv)
merge_keys_and_selfsig (kb);
if (tofu_set_policy (ctrl, kb, policy))
g10_exit (1);
release_kbnode (kb);
}
tofu_end_batch_update (ctrl);