With -Dlint, make shuf free all heap-allocated storage.
commitcb121d8f3683e81cf51c8f0c7a28dfa58ae68fa8
authorJim Meyering <jim@meyering.net>
Fri, 23 Feb 2007 14:18:16 +0000 (23 15:18 +0100)
committerJim Meyering <jim@meyering.net>
Fri, 23 Feb 2007 14:18:16 +0000 (23 15:18 +0100)
tree211be79c1a1135f705555d4ef5fecb7028da8523
parent3a9070dce7e3722c050c3e2793dd14e2e6a05d67
With -Dlint, make shuf free all heap-allocated storage.
* src/shuf.c (main): Move declaration of input_lines to
function scope, and initialize to NULL, so we can free it.
[lint]: Free all malloc'd memory.
* tests/misc/shuf: Also test shuf's -e and -i options.
ChangeLog
src/shuf.c
tests/misc/shuf