Skip to content
Snippets Groups Projects
Commit 1da75fad authored by Niels Möller's avatar Niels Möller
Browse files

Fix memory leak in eccdata.

parent 62b09e9f
No related branches found
No related tags found
No related merge requests found
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> 2018-07-08 Niels Möller <nisse@lysator.liu.se>
* fat-x86_64.c (fat_init): Fix setup for nettle_sha1_compress. * 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) ...@@ -1143,7 +1143,7 @@ output_curve (const struct ecc_curve *ecc, unsigned bits_per_limb)
printf ("#else\n"); printf ("#else\n");
mpz_init_set_ui (t, 1); mpz_set_ui (t, 1);
output_bignum ("ecc_unit", t, limb_size, bits_per_limb); output_bignum ("ecc_unit", t, limb_size, bits_per_limb);
printf ("static const mp_limb_t ecc_table[%lu] = {", printf ("static const mp_limb_t ecc_table[%lu] = {",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment