som_open_symbol_file_object was leaking a cleanup.
* solib-som.c (som_open_symbol_file_object): Call do_cleanups.
+2013-07-22 Tom Tromey <tromey@redhat.com>
+
+ * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
+
2013-07-22 Tom Tromey <tromey@redhat.com>
* dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
int errcode;
int from_tty = *(int *)from_ttyp;
gdb_byte buf[4];
+ struct cleanup *cleanup;
if (symfile_objfile)
if (!query (_("Attempt to reload symbols from process? ")))
return 0;
}
- make_cleanup (xfree, filename);
+ cleanup = make_cleanup (xfree, filename);
/* Have a pathname: read the symbol file. */
symbol_file_add_main (filename, from_tty);
+ do_cleanups (cleanup);
return 1;
}