projects
/
openwrt-10.03
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
51965b583c3a018e57d8da2796c9a49eb5826e96
[openwrt-10.03/.git]
/
package
/
busybox
/
patches
/
430-uniq_memleak.patch
1
--- a/coreutils/uniq.c
2
+++ b/coreutils/uniq.c
3
@@ -82,6 +82,8 @@ int uniq_main(int argc ATTRIBUTE_UNUSED,
4
5
if (!s0 || strncmp(e0, e1, max_chars)) {
6
break;
7
+ } else {
8
+ free(s1);
9
}
10
11
++dups; /* note: testing for overflow seems excessive. */