summaryrefslogtreecommitdiff
path: root/eccdata.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2018-07-12 22:32:59 +0200
committerNiels Möller <nisse@lysator.liu.se>2018-07-12 22:32:59 +0200
commit1da75fada9475e0172ed2a6186fb79ed8a543cb6 (patch)
treee8d7cb660466b2f33aae246784e7cf8131492cee /eccdata.c
parent62b09e9fa5f479ae2c3c621e4b51d28bc88df75e (diff)
downloadnettle-1da75fada9475e0172ed2a6186fb79ed8a543cb6.tar.gz
Fix memory leak in eccdata.
Diffstat (limited to 'eccdata.c')
-rw-r--r--eccdata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eccdata.c b/eccdata.c
index a4723f1e..92e244bd 100644
--- a/eccdata.c
+++ b/eccdata.c
@@ -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] = {",