1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-05-31 22:18:03 +02:00

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

View File

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