[Pkg-gnupg-commit] [gnupg2] 84/160: g10: Fix memory leak.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Fri Jul 15 09:36:38 UTC 2016


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

dkg pushed a commit to branch upstream
in repository gnupg2.

commit 1de362af9094e0a1a0be60f77fbea7c5190a4dcc
Author: Justus Winter <justus at g10code.com>
Date:   Thu Jun 30 17:55:06 2016 +0200

    g10: Fix memory leak.
    
    * g10/sign.c (mk_notation_policy_etc): Free 'mbox'.
    
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 g10/sign.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/g10/sign.c b/g10/sign.c
index 5e46797..0f16e96 100644
--- a/g10/sign.c
+++ b/g10/sign.c
@@ -156,6 +156,7 @@ mk_notation_policy_etc (PKT_signature *sig,
           if (DBG_LOOKUP)
             log_debug ("setting Signer's UID to '%s'\n", mbox);
           build_sig_subpkt (sig, SIGSUBPKT_SIGNERS_UID, mbox, strlen (mbox));
+          xfree (mbox);
         }
     }
 }

-- 
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