From 157f852b76e802d7101d16b018faa377e196bbc5 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Thu, 20 Jul 2000 12:50:09 +0000 Subject: [PATCH] (Fccl_execute_on_string): Don't check xmalloc return. Use xfree, not free. --- src/ccl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ccl.c b/src/ccl.c index 6ce8c752a15..e44dc86643b 100644 --- a/src/ccl.c +++ b/src/ccl.c @@ -1894,8 +1894,6 @@ is a unibyte string. By default it is a multibyte string.") } outbufsize = STRING_BYTES (XSTRING (str)) * ccl.buf_magnification + 256; outbuf = (char *) xmalloc (outbufsize); - if (!outbuf) - error ("Not enough memory"); ccl.last_block = NILP (contin); produced = ccl_driver (&ccl, XSTRING (str)->data, outbuf, STRING_BYTES (XSTRING (str)), outbufsize, (int *)0); @@ -1908,7 +1906,7 @@ is a unibyte string. By default it is a multibyte string.") val = make_string (outbuf, produced); else val = make_unibyte_string (outbuf, produced); - free (outbuf); + xfree (outbuf); QUIT; if (ccl.status != CCL_STAT_SUCCESS && ccl.status != CCL_STAT_SUSPEND_BY_SRC -- 2.39.2