summaryrefslogtreecommitdiff
path: root/tests/test-mbscasestr1.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-mbscasestr1.c')
-rw-r--r--tests/test-mbscasestr1.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test-mbscasestr1.c b/tests/test-mbscasestr1.c
index c8b18bbe6f..27abd116fd 100644
--- a/tests/test-mbscasestr1.c
+++ b/tests/test-mbscasestr1.c
@@ -131,10 +131,8 @@ main ()
result = mbscasestr (haystack, needle);
ASSERT (result == haystack + m);
}
- if (needle != NULL)
- free (needle);
- if (haystack != NULL)
- free (haystack);
+ free (needle);
+ free (haystack);
}
return 0;