This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: use xfree in dwarf2read.c



2002-05-24  Jim Blandy  <jimb@redhat.com>

	* dwarf2read.c (free_line_header): Use xfree, not free.

Index: dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.57
diff -c -c -b -F'^(' -r1.57 dwarf2read.c
*** dwarf2read.c	16 May 2002 21:00:12 -0000	1.57
--- dwarf2read.c	24 May 2002 19:37:06 -0000
***************
*** 4083,4100 ****
  free_line_header (struct line_header *lh)
  {
    if (lh->standard_opcode_lengths)
!     free (lh->standard_opcode_lengths);
  
    /* Remember that all the lh->file_names[i].name pointers are
       pointers into debug_line_buffer, and don't need to be freed.  */
    if (lh->file_names)
!     free (lh->file_names);
  
    /* Similarly for the include directory names.  */
    if (lh->include_dirs)
!     free (lh->include_dirs);
  
!   free (lh);
  }
  
  
--- 4083,4100 ----
  free_line_header (struct line_header *lh)
  {
    if (lh->standard_opcode_lengths)
!     xfree (lh->standard_opcode_lengths);
  
    /* Remember that all the lh->file_names[i].name pointers are
       pointers into debug_line_buffer, and don't need to be freed.  */
    if (lh->file_names)
!     xfree (lh->file_names);
  
    /* Similarly for the include directory names.  */
    if (lh->include_dirs)
!     xfree (lh->include_dirs);
  
!   xfree (lh);
  }
  
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]