[git] GnuPG - branch, master, updated. gnupg-2.2-base-18-g13821e1

by Werner Koch cvs at cvs.gnupg.org
Thu Aug 24 22:14:50 CEST 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, master has been updated
       via  13821e15fb9bdddfce79d88731c0f151724b2371 (commit)
      from  b065a696344eac3007dbd5642143ecaaeebab43a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 13821e15fb9bdddfce79d88731c0f151724b2371
Author: Werner Koch <wk at gnupg.org>
Date:   Thu Aug 24 22:06:59 2017 +0200

    gpg: Fix memory leak while running --check-trustdb.
    
    * g10/trustdb.c (update_min_ownertrust): Free PK.
    --
    
    This bug was revealed by the new trust-pgp-2.scm test.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/g10/trustdb.c b/g10/trustdb.c
index e2c3bda..92c1ca5 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);
 }
 
 

-----------------------------------------------------------------------

Summary of changes:
 g10/trustdb.c | 3 +++
 1 file changed, 3 insertions(+)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list