diff options
author | James Youngman <jay@gnu.org> | 2008-02-20 21:44:53 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-02-20 21:44:53 +0100 |
commit | 0f8faebb974621a7647d52beb3796121c07b3607 (patch) | |
tree | d20157dd97138548b0d67e56adf83318d5b63629 /src/base64.c | |
parent | d2d9234098e23a3180a837e6947232b68fddc077 (diff) | |
download | coreutils-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/base64.c')
0 files changed, 0 insertions, 0 deletions