diff --git a/torsions.c b/torsions.c
index 28b3ff127951416d2d876ee55811491a32afd6e2..5ca552de2eb1dcd3f21e656f60187fa3c3ebb187 100644
--- a/torsions.c
+++ b/torsions.c
@@ -1230,6 +1230,7 @@ build_curves_with_torsion_Z3xZ6(mpz_t f, mpmod_t n,
     mpz_clear(sk);
     mpz_clear(tk);
     mpres_clear(tmp, n);
+    ell_curve_clear (E, n);
     return ret;
 }