From: Jim Meyering Date: Mon, 12 Jan 2015 00:47:11 +0000 (-0800) Subject: test-strstr.c: avoid a trivial leak X-Git-Tag: v1.0~7190 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=769f1ff839b21a835c5b2d56e46c1eae6e31139c;p=gnulib.git test-strstr.c: avoid a trivial leak * tests/test-strstr.c (main): Free haystack. --- diff --git a/ChangeLog b/ChangeLog index 821d1cbb43..adaae8ab3e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2015-01-11 Jim Meyering + 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;