mirror of
https://github.com/vale981/arb
synced 2025-03-06 01:41:39 -05:00
fixes two memory leaks
This commit is contained in:
parent
cb4b272f7d
commit
f89bbc6daa
2 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue