diff options
author | Jim Meyering <meyering@fb.com> | 2015-01-11 16:47:11 -0800 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2015-01-11 16:47:11 -0800 |
commit | 769f1ff839b21a835c5b2d56e46c1eae6e31139c (patch) | |
tree | 2b76a9dea6ba308794ef246ea0d11aad5f946145 | |
parent | 06c61ed439c29bf0ff6261462afef6f84e772643 (diff) | |
download | gnulib-769f1ff839b21a835c5b2d56e46c1eae6e31139c.tar.gz |
test-strstr.c: avoid a trivial leak
* tests/test-strstr.c (main): Free haystack.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | tests/test-strstr.c | 1 |
2 files changed, 4 insertions, 0 deletions
@@ -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; |