1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-10 06:54:59 +02:00
openwrt-xburst/package/busybox/patches/430-uniq_memleak.patch
florian a656395fe8 [package] update busybox to 1.15.2 (#5926)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18684 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-07 16:56:04 +00:00

12 lines
221 B
Diff

--- a/coreutils/uniq.c
+++ b/coreutils/uniq.c
@@ -82,6 +82,8 @@ int uniq_main(int argc UNUSED_PARAM, cha
if (!s0 || strncmp(e0, e1, max_chars)) {
break;
+ } else {
+ free(s1);
}
free((char*)s1);