aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2016-12-06 11:14:49 +0000
committerNeal H. Walfield <[email protected]>2016-12-06 11:16:59 +0000
commit6102099985c1b82b6c0bba0464c1f913cc673e96 (patch)
tree653cbcda411c8e647149c99500b209d11c8ba4cc
parenttests: Change (interactive-shell) to start an interactive shell (diff)
downloadgnupg-6102099985c1b82b6c0bba0464c1f913cc673e96.tar.gz
gnupg-6102099985c1b82b6c0bba0464c1f913cc673e96.zip
g10: Avoid a memory leak.
* g10/gpg.c (main): Free KB when we're done with it. Signed-off-by: Neal H. Walfield <[email protected]>
-rw-r--r--g10/gpg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index 2deb27aeb..19a7a41d1 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -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);