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 | |
parent | 0aec9ff6b822116f453effb1867f9811c40ad59b (diff) | |
download | busybox-w32-a9c9bf5055956b9578911c1d773acf6a16397b84.tar.gz busybox-w32-a9c9bf5055956b9578911c1d773acf6a16397b84.tar.bz2 busybox-w32-a9c9bf5055956b9578911c1d773acf6a16397b84.zip |
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')
-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) | |||
89 | break; | 89 | break; |
90 | } | 90 | } |
91 | 91 | ||
92 | free(cur_line); | ||
92 | ++dups; /* testing for overflow seems excessive */ | 93 | ++dups; /* testing for overflow seems excessive */ |
93 | } | 94 | } |
94 | 95 | ||