Commit 95798b5c authored by Niels Möller's avatar Niels Möller

Fix handling of eratosthenes -q.

parent 0355cfad
......@@ -2,6 +2,7 @@
* examples/eratosthenes.c (main): Don't allocate bitmap storage
for limit == 2 (early exit), closing memory leak at exit.
(main): Fix handling of short -q option.
* eccdata.c (output_curve): Replace mpz_init_set_ui by mpz_set_ui,
to fix memory leak.
......
......@@ -262,7 +262,7 @@ main (int argc, char **argv)
{ NULL, 0, NULL, 0}
};
while ( (c = getopt_long(argc, argv, "svb:", options, NULL)) != -1)
while ( (c = getopt_long(argc, argv, "svqb:", options, NULL)) != -1)
switch (c)
{
case OPT_HELP:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment