]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: avoid "definitely lost" valgrind warnings
authorPádraig Brady <P@draigBrady.com>
Fri, 4 Sep 2015 13:38:06 +0000 (14:38 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 4 Sep 2015 16:04:03 +0000 (17:04 +0100)
commita4b640549df3216282f9d9924901b1521c3e2d69
treeccc7540dac6f44652ece8594ff198ed5b58bc55e
parent26c11773a4bf16c58d12240d1b6d6fa2856b51f1
maint: avoid "definitely lost" valgrind warnings

Since commit v8.23-19-g8defcee, main() will return,
rather than call exit(), this inducing "definitely lost"
warnings in valgrind's leak checker.  That precludes using
the following to flag memory leaks:

  valgrind --leak-check=full --error-exitcode=1 \
           --errors-for-leak-kinds=definite

* src/pr.c (main): In dev builds, explicitly free memory allocated.
* src/sort.c (main): Likewise.
* src/tail.c (main): Likewise.
* src/tsort.c (tsort): Likewise.
src/pr.c
src/sort.c
src/tail.c
src/tsort.c