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 /tests/test-strstr.c | |
parent | 06c61ed439c29bf0ff6261462afef6f84e772643 (diff) | |
download | gnulib-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.c | 1 |
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; |