[RFA 3/14] Changes to solib-darwin.c

Gary Benson gbenson@redhat.com
Thu Jul 11 10:35:00 GMT 2013


This patch modifies darwin_free_so to free the containing so_list
object.
-------------- next part --------------
2013-07-10  Gary Benson  <gbenson@redhat.com>

	* solib-darwin.c (darwin_free_so): Free the containing so_list.

diff --git a/gdb/solib-darwin.c b/gdb/solib-darwin.c
index c4c6308..177ce56 100644
--- a/gdb/solib-darwin.c
+++ b/gdb/solib-darwin.c
@@ -563,6 +563,7 @@ darwin_clear_solib (void)
 static void
 darwin_free_so (struct so_list *so)
 {
+  xfree (so);
 }
 
 /* The section table is built from bfd sections using bfd VMAs.


More information about the Gdb-patches mailing list