aboutsummaryrefslogtreecommitdiffstats
path: root/g10/trustdb.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/trustdb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c
index e2c3bdaa9..92c1ca50a 100644
--- a/g10/trustdb.c
+++ b/g10/trustdb.c
@@ -797,6 +797,7 @@ update_min_ownertrust (ctrl_t ctrl, u32 *kid, unsigned int new_trust)
{
log_error (_("public key %s not found: %s\n"),
keystr (kid), gpg_strerror (err));
+ xfree (pk);
return;
}
@@ -836,6 +837,8 @@ update_min_ownertrust (ctrl_t ctrl, u32 *kid, unsigned int new_trust)
{
tdbio_invalid ();
}
+
+ free_public_key (pk);
}