mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-24 19:03:29 +00:00
(Fcall_process): Use xmalloc, xfree.
This commit is contained in:
parent
a678d9fff1
commit
a871dd585b
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user