This is the mail archive of the gdb-patches@sourceware.org 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]

Re: RFA: fix minor memory leak in symfile.c


:REVIEWMAIL:

> While auditing other callers of build_id_bfd_get, I found a use of
> 'free', so I fixed that as well.  (Perhaps we ought to poison "free"?)

I think that's a good idea, since I don't think there is any case
besides the xfree implementation where we want to call free. Same
for malloc as well.  But I'm not very familiar with the pros and
cons of this GCC pragma.

> 2008-09-13  Tom Tromey  <tromey@redhat.com>
> 
> 	* symfile.c (build_id_verify): Free 'found'.
> 	(find_separate_debug_file): Use xfree, not free.

Looks good :).

-- 
Joel


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