diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-12-15 01:01:51 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-12-15 01:01:51 +0000 |
commit | b8c9b27d1e133d46199734ca1f047af8bb2d3314 (patch) | |
tree | 1aa002791f0e97bfc48c64222199e6d9f9e5eb53 /gdb/valprint.c | |
parent | 6fa957a9b9408297206fb88e7c773931760f0528 (diff) | |
download | gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.zip gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.gz gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.bz2 |
Replace free() with xfree().
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r-- | gdb/valprint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c index 0432bf2..84103c6 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -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; |