Fixed some memory leaks.

This commit is contained in:
Nicolás A. Ortega
2017-02-12 19:33:57 +01:00
parent 94248612ba
commit 2b5541d2c3
3 changed files with 4 additions and 1 deletions

View File

@ -199,6 +199,7 @@ int main(int argc, char *argv[]) {
while(mpz_cmp(primes.list[rootInd], numRoot) <= 0) {
if(++rootInd > primes.end) {
fprintf(stderr, "Error: `rootInd' surpassed `primes.end'.\n");
exitCode = 1;
goto releaseMemory;
}
}