]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fcall_process): Use xmalloc, xfree.
authorKarl Heuer <kwzh@gnu.org>
Thu, 4 Mar 1999 09:03:31 +0000 (09:03 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 4 Mar 1999 09:03:31 +0000 (09:03 +0000)
src/callproc.c

index f7ce129cda6292b6a896c0fc8a20608192230058..d6be8b6ff037703a5cf1aae1949ee5519936e882 100644 (file)
@@ -683,7 +683,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
            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 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
                       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 you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
                  }
                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)
                  {