2008-08-20 14:00:34 +00:00
|
|
|
--- a/coreutils/uniq.c
|
|
|
|
+++ b/coreutils/uniq.c
|
2009-02-21 15:07:45 +00:00
|
|
|
@@ -82,6 +82,8 @@ int uniq_main(int argc ATTRIBUTE_UNUSED,
|
2007-02-16 19:15:30 +00:00
|
|
|
|
2008-08-20 14:00:34 +00:00
|
|
|
if (!s0 || strncmp(e0, e1, max_chars)) {
|
2007-02-16 19:15:30 +00:00
|
|
|
break;
|
|
|
|
+ } else {
|
|
|
|
+ free(s1);
|
|
|
|
}
|
|
|
|
|
2008-08-20 14:00:34 +00:00
|
|
|
++dups; /* note: testing for overflow seems excessive. */
|