Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 6a405351 authored by ZIMMERMANN Paul's avatar ZIMMERMANN Paul
Browse files

fixed memory leak detected by valgrind

("make longcheck" with --enable-valgrind-tests)
parent 17bc05ba
No related branches found
No related tags found
No related merge requests found
Pipeline #994688 passed
......@@ -63,8 +63,9 @@ To make a new release:
Check no compiler warnings remain (with and without assertions),
if possible with different compilers (gcc, clang, llvm-gcc, ...)
Check "make longcheck" works with --enable-valgrind-tests.
Check that configure works outside the source directory.
Check the default tuning files */params.h (and */*/params.h, see the main
Check that configure works outside the source directory
(from the tarball).
Check the default tuning files */params.h (see the main
file ecm-params.h) on different platforms with "make ecm-params"
Compare the efficiency wrt the previous release with "./ecm 1e6 < c270"
and "./ecmbench ./ecm".
......
......@@ -2253,13 +2253,14 @@ ecm (mpz_t f, mpz_t x, mpz_t y, int param, mpz_t sigma, mpz_t n, mpz_t go,
stop_asap, chkfilename);
#ifdef HAVE_ADDLAWS
else{
ell_point_init(PE, E, modulus);
mpres_set(PE->x, P.x, modulus);
mpres_set(PE->y, P.y, modulus);
ell_point_init (PE, E, modulus);
mpres_set (PE->x, P.x, modulus);
mpres_set (PE->y, P.y, modulus);
youpi = ecm_stage1_W (f, E, PE, modulus, B1, B1done, batch_s,
go, stop_asap, chkfilename);
mpres_set(P.x, PE->x, modulus);
mpres_set(P.y, PE->y, modulus);
mpres_set (P.x, PE->x, modulus);
mpres_set (P.y, PE->y, modulus);
ell_point_clear (PE, E, modulus);
}
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment