X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/c559ac800555d0ab0bd236e9ea938f3b96703379..2db8ea3cc5e4fb968f1872591cf1ff56fc408ff8:/sbr/utils.c diff --git a/sbr/utils.c b/sbr/utils.c index fbada4e6..f5f20570 100644 --- a/sbr/utils.c +++ b/sbr/utils.c @@ -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)