summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2012-09-10 21:59:29 +0200
committerNiels Möller <nisse@lysator.liu.se>2012-09-10 21:59:29 +0200
commitb59383d971fac7105c91597d7897ef65c81ec42c (patch)
tree75980c4b8e3335efba248f62c324c4d1ec81f09c /examples
parent2bd9d1b8703e57eeb955c16f482555abe6315a4d (diff)
downloadnettle-b59383d971fac7105c91597d7897ef65c81ec42c.tar.gz
Explicitly deallocate storage before exit.
Diffstat (limited to 'examples')
-rw-r--r--examples/eratosthenes.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/eratosthenes.c b/examples/eratosthenes.c
index 2b9d04fd..966506aa 100644
--- a/examples/eratosthenes.c
+++ b/examples/eratosthenes.c
@@ -399,5 +399,9 @@ main (int argc, char **argv)
printf("%lu\n", n);
}
}
+
+ free(sieve);
+ free(block);
+
return EXIT_SUCCESS;
}