diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-30 19:34:09 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-30 19:34:09 +0200 |
commit | a9c9bf5055956b9578911c1d773acf6a16397b84 (patch) | |
tree | 1ce9b4c7e5794da2af5ee46fff6a71928909327f /coreutils/uniq.c | |
parent | 0aec9ff6b822116f453effb1867f9811c40ad59b (diff) |
uniq: plug memory leak (patch from OpenWRT project)
function old new delta
uniq_main 371 389 +18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/uniq.c')
-rw-r--r-- | coreutils/uniq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/coreutils/uniq.c b/coreutils/uniq.c index eceff6d4b..be53b312e 100644 --- a/coreutils/uniq.c +++ b/coreutils/uniq.c @@ -89,6 +89,7 @@ int uniq_main(int argc UNUSED_PARAM, char **argv) break; } + free(cur_line); ++dups; /* testing for overflow seems excessive */ } |