[Pkg-gnupg-commit] [gnupg2] 13/241: gpg: Don't forget to free some memory.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Dec 9 20:31:47 UTC 2015


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

dkg pushed a commit to branch master
in repository gnupg2.

commit e56a116f9a1171ccf8b3293887a217953a46fc20
Author: Neal H. Walfield <neal at g10code.com>
Date:   Mon Oct 19 10:35:38 2015 +0200

    gpg: Don't forget to free some memory.
    
    * g10/tofu.c (tofu_register): Free SIG_DIGEST before returning.
    
    --
    Signed-off-by: Neal H. Walfield <neal at g10code.com>
---
 g10/tofu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/g10/tofu.c b/g10/tofu.c
index 2d4c738..6510927 100644
--- a/g10/tofu.c
+++ b/g10/tofu.c
@@ -2248,6 +2248,7 @@ tofu_register (const byte *fingerprint_bin, const char *user_id,
   xfree (fingerprint);
   if (dbs)
     closedbs (dbs);
+  xfree (sig_digest);
 
   return trust_level;
 }

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