summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--tests/test-strstr.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 821d1cbb43..adaae8ab3e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2015-01-11 Jim Meyering <meyering@fb.com>
+ test-strstr.c: avoid a trivial leak
+ * tests/test-strstr.c (main): Free haystack.
+
update-copyright: recognize groff's \(co marker
* build-aux/update-copyright (circle_c_re): Also accept
uses of \(co, as found in gzip.1.
diff --git a/tests/test-strstr.c b/tests/test-strstr.c
index c801fa4fda..70ebf50c8a 100644
--- a/tests/test-strstr.c
+++ b/tests/test-strstr.c
@@ -272,6 +272,7 @@ main (int argc, char *argv[])
ASSERT (p);
ASSERT (p - haystack == i);
}
+ free (haystack);
}
return 0;