This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/14290] gdb_bfd_unref frees an already freed memory block
- From: "davidbalbert at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 27 Nov 2012 17:39:22 +0000
- Subject: [Bug gdb/14290] gdb_bfd_unref frees an already freed memory block
- Auto-submitted: auto-generated
- References: <bug-14290-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14290
--- Comment #9 from David Albert <davidbalbert at gmail dot com> 2012-11-27 17:39:22 UTC ---
The patch works for me (I applied it on top of the latest trunk).
One question: on line 94 of the patch, is it necessary to call gdb_bfd_ref on
`result`? In this case, bfd_mach_o_fat_extract was basically a noop, and
`abfd` was already reference counted by solib_bfd_open.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.