summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cipher/ChangeLog5
-rw-r--r--cipher/rsa.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/cipher/ChangeLog b/cipher/ChangeLog
index 61635c94..378e07a7 100644
--- a/cipher/ChangeLog
+++ b/cipher/ChangeLog
@@ -1,3 +1,8 @@
+2004-07-14 Moritz Schulte <moritz@g10code.com>
+
+ * rsa.c (_gcry_rsa_decrypt): Don't forget to free "a". Thanks to
+ Nikos Mavroyanopoulos.
+
2004-07-04 Moritz Schulte <moritz@g10code.com>
* serpent.c: Use "u32_t" instead of "unsigned long", do not
diff --git a/cipher/rsa.c b/cipher/rsa.c
index fa266223..9cceba21 100644
--- a/cipher/rsa.c
+++ b/cipher/rsa.c
@@ -547,6 +547,8 @@ _gcry_rsa_decrypt (int algo, gcry_mpi_t *result, gcry_mpi_t *data,
gcry_mpi_release (y);
y = rsa_unblind (a, ri, sk.n);
+
+ gcry_mpi_release (a);
}
if (! (flags & PUBKEY_FLAG_NO_BLINDING))