Mercurial > emacs
changeset 24432:a1cd251f7a70
(Fcall_process): Use xmalloc, xfree.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Thu, 04 Mar 1999 09:03:31 +0000 |
parents | 00398ed56396 |
children | 118e66d79d64 |
files | src/callproc.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/callproc.c Thu Mar 04 09:02:51 1999 +0000 +++ b/src/callproc.c Thu Mar 04 09:03:31 1999 +0000 @@ -683,7 +683,7 @@ else { /* We have to decode the input. */ int size = decoding_buffer_size (&process_coding, nread); - char *decoding_buf = (char *) malloc (size); + char *decoding_buf = (char *) xmalloc (size); decode_coding (&process_coding, bufptr, decoding_buf, nread, size); @@ -695,7 +695,7 @@ there's a possibility that the detection was done by insufficient data. So, we give up displaying on the fly. */ - free (decoding_buf); + xfree (decoding_buf); display_on_the_fly = 0; process_coding = saved_coding; carryover = nread; @@ -703,7 +703,7 @@ } if (process_coding.produced > 0) insert (decoding_buf, process_coding.produced); - free (decoding_buf); + xfree (decoding_buf); carryover = nread - process_coding.consumed; if (carryover > 0) {