Remove useless "if" tests before free. Deprecate "free" module.
[gnulib.git] / tests / test-c-strstr.c
index 75b8d5d..a8682cb 100644 (file)
@@ -129,10 +129,8 @@ main ()
        result = c_strstr (haystack, needle);
        ASSERT (result == haystack + m);
       }
-    if (needle != NULL)
-      free (needle);
-    if (haystack != NULL)
-      free (haystack);
+    free (needle);
+    free (haystack);
   }
 
   return 0;