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/dstread.c | |
parent | 6fa957a9b9408297206fb88e7c773931760f0528 (diff) | |
download | gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.zip gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.gz gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.bz2 |
Replace free() with xfree().
Diffstat (limited to 'gdb/dstread.c')
-rw-r--r-- | gdb/dstread.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/dstread.c b/gdb/dstread.c index c49b551..344717d 100644 --- a/gdb/dstread.c +++ b/gdb/dstread.c @@ -107,7 +107,7 @@ dst_start_symtab (void) /* Initialize the source file line number information for this file. */ if (line_vector) /* Unlikely, but maybe possible? */ - free ((PTR) line_vector); + xfree (line_vector); line_vector_index = 0; line_vector_length = 1000; prev_line_number = -2; /* Force first line number to be explicit */ @@ -861,13 +861,13 @@ decode_dst_structure (struct objfile *objfile, dst_rec_ptr_t entry, int code, type = find_dst_structure (name); if (type) { - free ((PTR) name); + xfree (name); return type; } type = create_new_type (objfile); TYPE_NAME (type) = obstack_copy0 (&objfile->symbol_obstack, name, strlen (name)); - free ((PTR) name); + xfree (name); TYPE_CODE (type) = code; TYPE_LENGTH (type) = DST_record (entry).size; TYPE_NFIELDS (type) = DST_record (entry).nfields; @@ -1401,7 +1401,7 @@ process_dst_block (struct objfile *objfile, dst_rec_ptr_t entry) block->sym[symnum] = symlist->symbol; - free ((PTR) symlist); + xfree (symlist); symlist = nextsym; symnum++; } @@ -1497,7 +1497,7 @@ read_dst_symtab (struct objfile *objfile) global_block->sym[symnum] = dst_global_symbols->symbol; - free ((PTR) dst_global_symbols); + xfree (dst_global_symbols); dst_global_symbols = nextsym; } dst_global_symbols = NULL; @@ -1534,7 +1534,7 @@ read_dst_symtab (struct objfile *objfile) { element = struct_list; struct_list = element->next; - free ((PTR) element); + xfree (element); } } |