[git] GnuPG - branch, master, updated. gnupg-2.1.15-361-g2cd281c

by Justus Winter cvs at cvs.gnupg.org
Mon Nov 14 17:56:20 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  2cd281c4def1ea881b92b9aba18c1892f89c1870 (commit)
      from  83c184a66b73f312425b01008f0495610e5329a4 (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 2cd281c4def1ea881b92b9aba18c1892f89c1870
Author: Justus Winter <justus at g10code.com>
Date:   Mon Nov 14 17:33:18 2016 +0100

    g10: Fix memory leak.
    
    * g10/mainproc.c (check_sig_and_print): Free 'pk'.
    
    Fixes-commit: 37e3c897252babc203447be9d2f286a4507875ad
    Signed-off-by: Justus Winter <justus at g10code.com>

diff --git a/g10/mainproc.c b/g10/mainproc.c
index 0c979f8..c1819f0 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -2203,6 +2203,8 @@ check_sig_and_print (CTX c, kbnode_t node)
             }
         }
 
+      free_public_key (pk);
+      pk = NULL;
       release_kbnode( keyblock );
       if (rc)
         g10_errors_seen = 1;

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

Summary of changes:
 g10/mainproc.c | 2 ++
 1 file changed, 2 insertions(+)


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




More information about the Gnupg-commits mailing list