From 7b705b3e085fbfcc88e9a203991880936a08b0dd Mon Sep 17 00:00:00 2001 From: Paul Zimmermann <Paul.Zimmermann@inria.fr> Date: Mon, 24 Jun 2024 07:35:29 +0200 Subject: [PATCH] fixed another memory leak in torsions.c --- torsions.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/torsions.c b/torsions.c index 41f2e923..af0ce7de 100644 --- a/torsions.c +++ b/torsions.c @@ -1413,9 +1413,9 @@ build_curves_with_torsion2(mpz_t f, mpz_t n, ell_curve_t E, mpz_set(E->a6, tE[0]->a6); mpz_set(x, tP[0]->x); mpz_set(y, tP[0]->y); - ell_point_clear(tP[0], tE[0], modulus); - ell_curve_clear(tE[0], modulus); } - mpmod_clear(modulus); + ell_point_clear (tP[0], tE[0], modulus); + ell_curve_clear (tE[0], modulus); + mpmod_clear (modulus); return ret; } -- GitLab