10f464bd144b7132e83d3d03e5c5d1a3dae78c87
[openwrt/staging/mkresin.git] / package / busybox / patches / 430-uniq_memleak.patch
1 diff -ur bb.old/coreutils/uniq.c bb.dev/coreutils/uniq.c
2 --- bb.old/coreutils/uniq.c 2007-01-24 22:34:43.000000000 +0100
3 +++ bb.dev/coreutils/uniq.c 2007-02-16 20:04:19.245454368 +0100
4 @@ -83,6 +83,8 @@
5
6 if (!s0 || strcmp(e0, e1)) {
7 break;
8 + } else {
9 + free(s1);
10 }
11
12 ++dups; /* Note: Testing for overflow seems excessive. */