aboutsummaryrefslogtreecommitdiffstats
path: root/src/ccl.c
diff options
context:
space:
mode:
authorDave Love2000-07-20 12:50:09 +0000
committerDave Love2000-07-20 12:50:09 +0000
commit157f852b76e802d7101d16b018faa377e196bbc5 (patch)
tree6693a87a198246177710765de6ad4eb594a32d57 /src/ccl.c
parentec68e3237ee380b5cda24e339721840330a20212 (diff)
downloademacs-157f852b76e802d7101d16b018faa377e196bbc5.tar.gz
emacs-157f852b76e802d7101d16b018faa377e196bbc5.zip
(Fccl_execute_on_string): Don't check xmalloc return. Use xfree, not
free.
Diffstat (limited to 'src/ccl.c')
-rw-r--r--src/ccl.c4
1 files changed, 1 insertions, 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.")
1894 } 1894 }
1895 outbufsize = STRING_BYTES (XSTRING (str)) * ccl.buf_magnification + 256; 1895 outbufsize = STRING_BYTES (XSTRING (str)) * ccl.buf_magnification + 256;
1896 outbuf = (char *) xmalloc (outbufsize); 1896 outbuf = (char *) xmalloc (outbufsize);
1897 if (!outbuf)
1898 error ("Not enough memory");
1899 ccl.last_block = NILP (contin); 1897 ccl.last_block = NILP (contin);
1900 produced = ccl_driver (&ccl, XSTRING (str)->data, outbuf, 1898 produced = ccl_driver (&ccl, XSTRING (str)->data, outbuf,
1901 STRING_BYTES (XSTRING (str)), outbufsize, (int *)0); 1899 STRING_BYTES (XSTRING (str)), outbufsize, (int *)0);
@@ -1908,7 +1906,7 @@ is a unibyte string. By default it is a multibyte string.")
1908 val = make_string (outbuf, produced); 1906 val = make_string (outbuf, produced);
1909 else 1907 else
1910 val = make_unibyte_string (outbuf, produced); 1908 val = make_unibyte_string (outbuf, produced);
1911 free (outbuf); 1909 xfree (outbuf);
1912 QUIT; 1910 QUIT;
1913 if (ccl.status != CCL_STAT_SUCCESS 1911 if (ccl.status != CCL_STAT_SUCCESS
1914 && ccl.status != CCL_STAT_SUSPEND_BY_SRC 1912 && ccl.status != CCL_STAT_SUSPEND_BY_SRC