[svn] GnuPG - r5432 - branches/STABLE-BRANCH-2-0/g10
svn author wk
cvs at cvs.gnupg.org
Wed Sep 29 20:42:44 CEST 2010
Author: wk
Date: 2010-09-29 20:42:43 +0200 (Wed, 29 Sep 2010)
New Revision: 5432
Modified:
branches/STABLE-BRANCH-2-0/g10/ChangeLog
branches/STABLE-BRANCH-2-0/g10/keygen.c
Log:
Fix memory leak
Modified: branches/STABLE-BRANCH-2-0/g10/ChangeLog
===================================================================
--- branches/STABLE-BRANCH-2-0/g10/ChangeLog 2010-09-29 08:43:55 UTC (rev 5431)
+++ branches/STABLE-BRANCH-2-0/g10/ChangeLog 2010-09-29 18:42:43 UTC (rev 5432)
@@ -1,5 +1,7 @@
2010-09-29 Werner Koch <wk at g10code.com>
+ * keygen.c (key_from_sexp): Fix memory leak in the error case.
+
* call-agent.c (agent_scd_pksign): Add missing space.
2010-09-28 David Shaw <dshaw at jabberwocky.com> (wk)
Modified: branches/STABLE-BRANCH-2-0/g10/keygen.c
===================================================================
--- branches/STABLE-BRANCH-2-0/g10/keygen.c 2010-09-29 08:43:55 UTC (rev 5431)
+++ branches/STABLE-BRANCH-2-0/g10/keygen.c 2010-09-29 18:42:43 UTC (rev 5432)
@@ -1098,7 +1098,7 @@
{
for (i=0; i<idx; i++)
{
- xfree (array[i]);
+ gcry_mpi_release (array[i]);
array[i] = NULL;
}
gcry_sexp_release (list);
More information about the Gnupg-commits
mailing list