summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-02-16 19:15:30 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-02-16 19:15:30 +0000
commit48253766fbdf7f4191c5c01e20ea66a348e78f30 (patch)
tree2c2154ad565c2eb58b7b764fa3de4783e6bbb267 /package
parent4f378c0fe5f1f9329a74a77a32f0954cfa93f233 (diff)
fix memleak in uniq (#1354)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6313 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/busybox/patches/430-uniq_memleak.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/busybox/patches/430-uniq_memleak.patch b/package/busybox/patches/430-uniq_memleak.patch
new file mode 100644
index 000000000..10f464bd1
--- /dev/null
+++ b/package/busybox/patches/430-uniq_memleak.patch
@@ -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. */