mirror of
git://git.gnupg.org/gnupg.git
synced 2025-05-15 08:23:24 +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:
parent
db6d8cfdc1
commit
6102099985
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user