summaryrefslogtreecommitdiffstats
path: root/g10/tofu.c
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@g10code.com>2015-10-19 10:35:38 +0200
committerNeal H. Walfield <neal@g10code.com>2015-10-19 10:35:38 +0200
commite56a116f9a1171ccf8b3293887a217953a46fc20 (patch)
tree3683f18c10258e59d9ae1243d46232ce2c77a0e7 /g10/tofu.c
parentgpg: If a conflict occurs in batch mode, record that. (diff)
downloadgnupg2-e56a116f9a1171ccf8b3293887a217953a46fc20.tar.xz
gnupg2-e56a116f9a1171ccf8b3293887a217953a46fc20.zip
gpg: Don't forget to free some memory.
* g10/tofu.c (tofu_register): Free SIG_DIGEST before returning. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>
Diffstat (limited to 'g10/tofu.c')
-rw-r--r--g10/tofu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/tofu.c b/g10/tofu.c
index 2d4c738e4..651092782 100644
--- a/g10/tofu.c
+++ b/g10/tofu.c
@@ -2248,6 +2248,7 @@ tofu_register (const byte *fingerprint_bin, const char *user_id,
xfree (fingerprint);
if (dbs)
closedbs (dbs);
+ xfree (sig_digest);
return trust_level;
}