1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

Fix memory leak

This commit is contained in:
Werner Koch 2010-09-29 18:42:43 +00:00
parent 420b04a504
commit 7343086808
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2010-09-29 Werner Koch <wk@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@jabberwocky.com> (wk)

View File

@ -1098,7 +1098,7 @@ key_from_sexp (gcry_mpi_t *array, gcry_sexp_t sexp,
{
for (i=0; i<idx; i++)
{
xfree (array[i]);
gcry_mpi_release (array[i]);
array[i] = NULL;
}
gcry_sexp_release (list);