Replace free() with xfree().

This commit is contained in:
Kevin Buettner 2000-12-15 01:01:51 +00:00
parent 6fa957a9b9
commit b8c9b27d1e
128 changed files with 545 additions and 532 deletions

View file

@ -990,7 +990,7 @@ print_decimal_chars (struct ui_file *stream, unsigned char *valaddr,
{
fprintf_filtered (stream, "%1d", digits[i]);
}
free (digits);
xfree (digits);
fprintf_filtered (stream, local_decimal_format_suffix ());
}
@ -1202,7 +1202,7 @@ val_print_string (CORE_ADDR addr, int len, int width, struct ui_file *stream)
{
buffer = (char *) xmalloc (len * width);
bufptr = buffer;
old_chain = make_cleanup (free, buffer);
old_chain = make_cleanup (xfree, buffer);
nfetch = partial_memory_read (addr, bufptr, len * width, &errcode)
/ width;
@ -1225,7 +1225,7 @@ val_print_string (CORE_ADDR addr, int len, int width, struct ui_file *stream)
buffer = (char *) xrealloc (buffer, (nfetch + bufsize) * width);
}
old_chain = make_cleanup (free, buffer);
old_chain = make_cleanup (xfree, buffer);
bufptr = buffer + bufsize * width;
bufsize += nfetch;