Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wim Lewis
nettle
Commits
b59383d9
Commit
b59383d9
authored
Sep 10, 2012
by
Niels Möller
Browse files
Explicitly deallocate storage before exit.
parent
2bd9d1b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
b59383d9
2012-09-10 Niels Möller <nisse@lysator.liu.se>
* examples/eratosthenes.c (main): Explicitly deallocate storage
before exit.
* examples/io.c (read_file): Explicitly treat an empty file as an
error. Rearrange loop, check for short fread return value.
...
...
examples/eratosthenes.c
View file @
b59383d9
...
...
@@ -399,5 +399,9 @@ main (int argc, char **argv)
printf
(
"%lu
\n
"
,
n
);
}
}
free
(
sieve
);
free
(
block
);
return
EXIT_SUCCESS
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment