diff options
Diffstat (limited to 'src/make-prime-list.c')
-rw-r--r-- | src/make-prime-list.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/make-prime-list.c b/src/make-prime-list.c index b31e1ed26..0d5b614fb 100644 --- a/src/make-prime-list.c +++ b/src/make-prime-list.c @@ -217,6 +217,9 @@ main (int argc, char **argv) output_primes (prime_list, nprimes); + free (sieve); + free (prime_list); + if (ferror (stdout) + fclose (stdout)) { fprintf (stderr, "write error: %s\n", strerror (errno)); |