summaryrefslogtreecommitdiff
path: root/tests/test-strstr.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2015-01-11 16:47:11 -0800
committerJim Meyering <meyering@fb.com>2015-01-11 16:47:11 -0800
commit769f1ff839b21a835c5b2d56e46c1eae6e31139c (patch)
tree2b76a9dea6ba308794ef246ea0d11aad5f946145 /tests/test-strstr.c
parent06c61ed439c29bf0ff6261462afef6f84e772643 (diff)
downloadgnulib-769f1ff839b21a835c5b2d56e46c1eae6e31139c.tar.gz
test-strstr.c: avoid a trivial leak
* tests/test-strstr.c (main): Free haystack.
Diffstat (limited to 'tests/test-strstr.c')
-rw-r--r--tests/test-strstr.c1
1 files changed, 1 insertions, 0 deletions
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;