mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 18:35:55 +02:00
fix memleak in uniq (#1354)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6313 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
4f378c0fe5
commit
48253766fb
12
package/busybox/patches/430-uniq_memleak.patch
Normal file
12
package/busybox/patches/430-uniq_memleak.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -ur bb.old/coreutils/uniq.c bb.dev/coreutils/uniq.c
|
||||
--- bb.old/coreutils/uniq.c 2007-01-24 22:34:43.000000000 +0100
|
||||
+++ bb.dev/coreutils/uniq.c 2007-02-16 20:04:19.245454368 +0100
|
||||
@@ -83,6 +83,8 @@
|
||||
|
||||
if (!s0 || strcmp(e0, e1)) {
|
||||
break;
|
||||
+ } else {
|
||||
+ free(s1);
|
||||
}
|
||||
|
||||
++dups; /* Note: Testing for overflow seems excessive. */
|
Loading…
Reference in New Issue
Block a user