# HG changeset patch # User Karl Heuer # Date 920538211 0 # Node ID a1cd251f7a7058469777785e579f7298fe2e8031 # Parent 00398ed563960d329a988a5a64635beee1e4af20 (Fcall_process): Use xmalloc, xfree. diff -r 00398ed56396 -r a1cd251f7a70 src/callproc.c --- 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) {