[git] GnuPG - branch, master, updated. gnupg-2.1.16-89-g98433c7

by Werner Koch cvs at cvs.gnupg.org
Mon Dec 12 14:05:13 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  98433c70431dfbde99b0e89416856d1eef9ebc88 (commit)
      from  f1304ee9b21e6ceac6c13d04ceddd23fadb5c7f1 (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 98433c70431dfbde99b0e89416856d1eef9ebc88
Author: Werner Koch <wk at gnupg.org>
Date:   Mon Dec 12 14:02:14 2016 +0100

    gpg: Fix memory leak in ecc key generation.
    
    * g10/keygen.c (ecckey_from_sexp): Release curve.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/g10/keygen.c b/g10/keygen.c
index c1abc70..c937084 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -1102,7 +1102,7 @@ ecckey_from_sexp (gcry_mpi_t *array, gcry_sexp_t sexp, int algo)
 {
   gpg_error_t err;
   gcry_sexp_t list, l2;
-  char *curve;
+  char *curve = NULL;
   int i;
   const char *oidstr;
   unsigned int nbits;
@@ -1171,6 +1171,7 @@ ecckey_from_sexp (gcry_mpi_t *array, gcry_sexp_t sexp, int algo)
     }
 
  leave:
+  xfree (curve);
   if (err)
     {
       for (i=0; i < 3; i++)

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

Summary of changes:
 g10/keygen.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


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




More information about the Gnupg-commits mailing list