do not download kernel sources when using an external kernel tree
[librecmc/librecmc.git] / package / busybox / patches / 430-uniq_memleak.patch
index df56bf81036e501bcc93699341db723fd99c7d9b..93f60eb004ed77c6918708667729c58eb967c516 100644 (file)
@@ -1,6 +1,6 @@
 --- a/coreutils/uniq.c
 +++ b/coreutils/uniq.c
-@@ -82,6 +82,8 @@
+@@ -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);