diff options
author | Niels Möller <nisse@lysator.liu.se> | 2018-07-12 22:32:59 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2018-07-12 22:32:59 +0200 |
commit | 1da75fada9475e0172ed2a6186fb79ed8a543cb6 (patch) | |
tree | e8d7cb660466b2f33aae246784e7cf8131492cee | |
parent | 62b09e9fa5f479ae2c3c621e4b51d28bc88df75e (diff) | |
download | nettle-1da75fada9475e0172ed2a6186fb79ed8a543cb6.tar.gz |
Fix memory leak in eccdata.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | eccdata.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2018-07-12 Niels Möller <nisse@lysator.liu.se> + + * eccdata.c (output_curve): Replace mpz_init_set_ui by mpz_set_ui, + to fix memory leak. + 2018-07-08 Niels Möller <nisse@lysator.liu.se> * fat-x86_64.c (fat_init): Fix setup for nettle_sha1_compress. @@ -1143,7 +1143,7 @@ output_curve (const struct ecc_curve *ecc, unsigned bits_per_limb) printf ("#else\n"); - mpz_init_set_ui (t, 1); + mpz_set_ui (t, 1); output_bignum ("ecc_unit", t, limb_size, bits_per_limb); printf ("static const mp_limb_t ecc_table[%lu] = {", |