]> diplodocus.org Git - nmh/blobdiff - sbr/utils.c
Replace `if (p) free(p)' with `mh_xfree(p)'.
[nmh] / sbr / utils.c
index fbada4e..f5f2057 100644 (file)
@@ -46,9 +46,7 @@ void *mh_xrealloc(void *ptr, size_t size)
 
     /* Copy POSIX behaviour, coping with non-POSIX systems. */
     if (size == 0) {
-        if (ptr) {
-            free(ptr);
-        }
+        mh_xfree(ptr);
         return mh_xmalloc(1); /* Get a unique pointer. */
     }
     if (!ptr)