You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/package/busybox/patches/430-uniq_memleak.patch

13 lines
350 B
Diff

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. */