[git] GnuPG - branch, master, updated. gnupg-2.1.15-366-g1f7639e

by NIIBE Yutaka cvs at cvs.gnupg.org
Tue Nov 15 13:12:06 CET 2016


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  1f7639ebbe58af1b581b0be7809da9ee55482992 (commit)
      from  f86b1a15ad4bb7bcc1e9f7d209aabcb23641f7df (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 1f7639ebbe58af1b581b0be7809da9ee55482992
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Tue Nov 15 21:10:51 2016 +0900

    g10: Fix memory leak.
    
    * g10/keyedit.c (menu_adduid): Don't copy 'sig'.
    
    --
    
    Fixes-commit: 809d67e74014cb563efd965744fd11f87bbae743
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>

diff --git a/g10/keyedit.c b/g10/keyedit.c
index 4fba224..171afb7 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -4349,8 +4349,7 @@ menu_adduid (ctrl_t ctrl, kbnode_t pub_keyblock,
     add_kbnode (pub_keyblock, node);
   pkt = xmalloc_clear (sizeof *pkt);
   pkt->pkttype = PKT_SIGNATURE;
-  pkt->pkt.signature = copy_signature (NULL, sig);
-  free_seckey_enc (sig);
+  pkt->pkt.signature = sig;
   if (pub_where)
     insert_kbnode (node, new_kbnode (pkt), 0);
   else

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

Summary of changes:
 g10/keyedit.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)


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




More information about the Gnupg-commits mailing list