X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/2db05e4bbbdf107f2cebdf385af108c77b9748ba..6655c7f910b94a7f1c299a00c4f3e9ad811e38b9:/package/busybox/patches/430-uniq_memleak.patch diff --git a/package/busybox/patches/430-uniq_memleak.patch b/package/busybox/patches/430-uniq_memleak.patch index 51965b583..93f60eb00 100644 --- a/package/busybox/patches/430-uniq_memleak.patch +++ b/package/busybox/patches/430-uniq_memleak.patch @@ -1,6 +1,6 @@ --- a/coreutils/uniq.c +++ b/coreutils/uniq.c -@@ -82,6 +82,8 @@ int uniq_main(int argc ATTRIBUTE_UNUSED, +@@ -82,6 +82,8 @@ int uniq_main(int argc UNUSED_PARAM, cha if (!s0 || strncmp(e0, e1, max_chars)) { break; @@ -8,4 +8,4 @@ + free(s1); } - ++dups; /* note: testing for overflow seems excessive. */ + free((char*)s1);