summaryrefslogtreecommitdiff
path: root/src/id.c
diff options
context:
space:
mode:
authorJames Youngman <jay@gnu.org>2008-02-20 21:44:53 +0100
committerJim Meyering <meyering@redhat.com>2008-02-20 21:44:53 +0100
commit0f8faebb974621a7647d52beb3796121c07b3607 (patch)
treed20157dd97138548b0d67e56adf83318d5b63629 /src/id.c
parentd2d9234098e23a3180a837e6947232b68fddc077 (diff)
downloadcoreutils-0f8faebb974621a7647d52beb3796121c07b3607.tar.xz
join: avoid new leaks
* src/join.c (prevline): Make prevline module-level static, so that the allocated items can be freed at exit. (free_prevline): new atexit function; frees items in prevline[]. Use ARRAY_CARDINALITY, so include "argmatch.h" to get that. (main): Arrange for free_prevline to be called during exit. (get_line): Free prevline[which - 1] also, as that will have been allocated by dup_line.
Diffstat (limited to 'src/id.c')
0 files changed, 0 insertions, 0 deletions