changeset 30344:9f2a382a22e3

(Fccl_execute_on_string): Don't check xmalloc return. Use xfree, not free.
author Dave Love <fx@gnu.org>
date Thu, 20 Jul 2000 12:50:09 +0000
parents 21d1c542f98e
children d24028985f3d
files src/ccl.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/ccl.c	Thu Jul 20 11:17:16 2000 +0000
+++ b/src/ccl.c	Thu Jul 20 12:50:09 2000 +0000
@@ -1894,8 +1894,6 @@
     }
   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 @@
     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