diff options
Diffstat (limited to 'tests/test-mbsstr2.c')
-rw-r--r-- | tests/test-mbsstr2.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test-mbsstr2.c b/tests/test-mbsstr2.c index d8699ca291..014afed3c8 100644 --- a/tests/test-mbsstr2.c +++ b/tests/test-mbsstr2.c @@ -143,10 +143,8 @@ main () result = mbsstr (haystack, needle); ASSERT (result == haystack + m); } - if (needle != NULL) - free (needle); - if (haystack != NULL) - free (haystack); + free (needle); + free (haystack); } return 0; |