Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-08-30 21:34:09 +0400
committerDenys Vlasenko <vda.linux@googlemail.com>2009-08-30 21:34:09 +0400
commita9c9bf5055956b9578911c1d773acf6a16397b84 (patch)
tree1ce9b4c7e5794da2af5ee46fff6a71928909327f /coreutils/uniq.c
parent0aec9ff6b822116f453effb1867f9811c40ad59b (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.c1
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 */
}