Fixed some memory leaks.

This commit is contained in:
nortega committed 2017-02-12 19:33:57 +01:00
1 parent 94248612ba
commit 2b5541d2c3
3 files changed
+4 -1

No files matched your search

+1
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;
}
}