From: Peter Johnson Date: Mon, 29 Oct 2001 06:28:51 +0000 (-0000) Subject: On xfree(NULL), just return instead of triggering InternalError(). X-Git-Tag: v0.1.0~228 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=305b471f51fbdcc90e22e55afd4153a4b0c89f35;p=yasm On xfree(NULL), just return instead of triggering InternalError(). svn path=/trunk/yasm/; revision=302 --- diff --git a/libyasm/xmalloc.c b/libyasm/xmalloc.c index 656ca4a8..77353c19 100644 --- a/libyasm/xmalloc.c +++ b/libyasm/xmalloc.c @@ -88,7 +88,7 @@ void xfree(void *p) { if (!p) - InternalError(_("Tried to free NULL pointer")); + return; free(p); } diff --git a/src/xmalloc.c b/src/xmalloc.c index 656ca4a8..77353c19 100644 --- a/src/xmalloc.c +++ b/src/xmalloc.c @@ -88,7 +88,7 @@ void xfree(void *p) { if (!p) - InternalError(_("Tried to free NULL pointer")); + return; free(p); }