fixes two memory leaks

This commit is contained in:
Pascal 2016-09-09 22:20:10 +02:00
parent cb4b272f7d
commit f89bbc6daa
2 changed files with 2 additions and 0 deletions

View file

@ -106,6 +106,7 @@ int main()
} while (acb_dirichlet_char_next_primitive(chi, G) >= 0);
_acb_vec_clear(z, G->expo);
_arb_vec_clear(kt, nv);
_arb_vec_clear(t, nv);
acb_clear(sum);
arb_clear(eq);

View file

@ -91,6 +91,7 @@ dlog_vec_sieve(ulong *v, ulong nv, ulong a, ulong va, nmod_t mod, ulong na, nmod
smooth, limcount, mod.n, logcost, logcount, sievecount, missed);
#endif
n_primes_clear(iter);
dlog_precomp_clear(pre);
for (k = mod.n + 1; k < nv; k++)
v[k] = v[k - mod.n];
}