Remove useless "if" tests before free. Deprecate "free" module.
[gnulib.git] / tests / test-strcasestr.c
index 9db62f1..a674719 100644 (file)
@@ -144,10 +144,8 @@ main ()
        result = strcasestr (haystack, needle);
        ASSERT (result == haystack + m);
       }
-    if (needle != NULL)
-      free (needle);
-    if (haystack != NULL)
-      free (haystack);
+    free (needle);
+    free (haystack);
   }
 
   return 0;