diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2013-08-06 14:38:51 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2013-08-06 14:38:51 +0900 |
commit | 9a421813123a2f5db0a91eaee4a45138efc9ad34 (patch) | |
tree | a9c0b9a6574b2d51c8e0532c66cd2535be7f7d67 /cipher | |
parent | 87eddc31ccba6decbddd1761dd42a208666cd311 (diff) | |
download | libgcrypt-9a421813123a2f5db0a91eaee4a45138efc9ad34.tar.gz |
cipher: fix another memory leak.
* cipher/ecc.c (ecc_get_curve): Free TMP.
Diffstat (limited to 'cipher')
-rw-r--r-- | cipher/ecc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cipher/ecc.c b/cipher/ecc.c index 375eeafa..b694d761 100644 --- a/cipher/ecc.c +++ b/cipher/ecc.c @@ -1319,6 +1319,7 @@ ecc_get_curve (gcry_mpi_t *pkey, int iterator, unsigned int *r_nbits) tmp = scanval (domain_parms[idx].g_y); if (!mpi_cmp (tmp, E.G.y)) { + mpi_free (tmp); result = domain_parms[idx].desc; if (r_nbits) *r_nbits = domain_parms[idx].nbits; |