aboutsummaryrefslogtreecommitdiffstats
path: root/src/callproc.c
diff options
context:
space:
mode:
authorKarl Heuer1999-03-04 09:03:31 +0000
committerKarl Heuer1999-03-04 09:03:31 +0000
commita871dd585ba29dd462aba78c49c931aa47402ffb (patch)
tree3768de5fd731376ed125e267998def71d6b39568 /src/callproc.c
parenta678d9fff1d6c68d60e709b23542f11100006a40 (diff)
downloademacs-a871dd585ba29dd462aba78c49c931aa47402ffb.tar.gz
emacs-a871dd585ba29dd462aba78c49c931aa47402ffb.zip
(Fcall_process): Use xmalloc, xfree.
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/callproc.c b/src/callproc.c
index f7ce129cda6..d6be8b6ff03 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -683,7 +683,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
683 else 683 else
684 { /* We have to decode the input. */ 684 { /* We have to decode the input. */
685 int size = decoding_buffer_size (&process_coding, nread); 685 int size = decoding_buffer_size (&process_coding, nread);
686 char *decoding_buf = (char *) malloc (size); 686 char *decoding_buf = (char *) xmalloc (size);
687 687
688 decode_coding (&process_coding, bufptr, decoding_buf, 688 decode_coding (&process_coding, bufptr, decoding_buf,
689 nread, size); 689 nread, size);
@@ -695,7 +695,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
695 there's a possibility that the detection was 695 there's a possibility that the detection was
696 done by insufficient data. So, we give up 696 done by insufficient data. So, we give up
697 displaying on the fly. */ 697 displaying on the fly. */
698 free (decoding_buf); 698 xfree (decoding_buf);
699 display_on_the_fly = 0; 699 display_on_the_fly = 0;
700 process_coding = saved_coding; 700 process_coding = saved_coding;
701 carryover = nread; 701 carryover = nread;
@@ -703,7 +703,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
703 } 703 }
704 if (process_coding.produced > 0) 704 if (process_coding.produced > 0)
705 insert (decoding_buf, process_coding.produced); 705 insert (decoding_buf, process_coding.produced);
706 free (decoding_buf); 706 xfree (decoding_buf);
707 carryover = nread - process_coding.consumed; 707 carryover = nread - process_coding.consumed;
708 if (carryover > 0) 708 if (carryover > 0)
709 { 709 {