[Pkg-gnupg-commit] [gnupg2] 251/292: g10: Fix memory leak.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Nov 21 06:31:48 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

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>
---
 g10/keyedit.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list