[Pkg-gnupg-commit] [gnupg2] 78/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 84f262102be19334534cccc66ed7eceea2714527
Author: Justus Winter <justus at g10code.com>
Date:   Thu Jun 30 14:00:46 2016 +0200

    g10: Fix memory leak.
    
    * g10/sign.c (write_plaintext_packet): Free packet.
    
    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 3a96f0f..5e46797 100644
--- a/g10/sign.c
+++ b/g10/sign.c
@@ -627,6 +627,7 @@ write_plaintext_packet (IOBUF out, IOBUF inp, const char *fname, int ptmode)
             log_error ("build_packet(PLAINTEXT) failed: %s\n",
                        gpg_strerror (rc) );
         pt->buf = NULL;
+        free_packet (&pkt);
     }
     else {
         byte copy_buffer[4096];

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