From 769f1ff839b21a835c5b2d56e46c1eae6e31139c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 11 Jan 2015 16:47:11 -0800 Subject: test-strstr.c: avoid a trivial leak * tests/test-strstr.c (main): Free haystack. --- tests/test-strstr.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/test-strstr.c') 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; -- cgit v1.2.1