summaryrefslogtreecommitdiff
path: root/cipher
diff options
context:
space:
mode:
authorMoritz Schulte <mo@g10code.com>2004-07-14 16:48:17 +0000
committerMoritz Schulte <mo@g10code.com>2004-07-14 16:48:17 +0000
commitc4d4c23ab9dd1539c475f616e8d743673569f1c7 (patch)
treeb95547664944606df4170585d2da7a2bca3f55bb /cipher
parent242be0429989f21a1873adfb9f683db81415f618 (diff)
downloadlibgcrypt-c4d4c23ab9dd1539c475f616e8d743673569f1c7.tar.gz
2004-07-14 Moritz Schulte <moritz@g10code.com>
* rsa.c (_gcry_rsa_decrypt): Don't forget to free "a". Thanks to Nikos Mavroyanopoulos.
Diffstat (limited to 'cipher')
-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))