[svn] gcry - r1404 - trunk/cipher

svn author wk cvs at cvs.gnupg.org
Fri Aug 21 11:34:16 CEST 2009


Author: wk
Date: 2009-08-21 11:34:16 +0200 (Fri, 21 Aug 2009)
New Revision: 1404

Modified:
   trunk/cipher/ChangeLog
   trunk/cipher/dsa.c
Log:
Fix memleak in dsa key generation


Modified: trunk/cipher/ChangeLog
===================================================================
--- trunk/cipher/ChangeLog	2009-08-05 15:02:24 UTC (rev 1403)
+++ trunk/cipher/ChangeLog	2009-08-21 09:34:16 UTC (rev 1404)
@@ -1,3 +1,8 @@
+2009-08-21  Werner Koch  <wk at g10code.com>
+
+	* dsa.c (dsa_generate_ext): Release retfactors array before
+	setting it to NULL.  Reported by Daiko Ueno.
+
 2009-07-02  Werner Koch  <wk at g10code.com>
 
 	* md.c (md_read): Fix incomplete check for NULL.

Modified: trunk/cipher/dsa.c
===================================================================
--- trunk/cipher/dsa.c	2009-08-05 15:02:24 UTC (rev 1403)
+++ trunk/cipher/dsa.c	2009-08-21 09:34:16 UTC (rev 1404)
@@ -907,6 +907,7 @@
               gcry_mpi_release ((*retfactors)[i]);
               (*retfactors)[i] = NULL;
             }
+          gcry_free (*retfactors);
           *retfactors = NULL;
           if (ec)
             {




More information about the Gnupg-commits mailing list