diff options
Diffstat (limited to 'gdb/progspace.c')
-rw-r--r-- | gdb/progspace.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gdb/progspace.c b/gdb/progspace.c index 54531d9..1065c27 100644 --- a/gdb/progspace.c +++ b/gdb/progspace.c @@ -509,13 +509,10 @@ switch_to_program_space_and_thread (struct program_space *pspace) void clear_program_space_solib_cache (struct program_space *pspace) { - int ix; - char *name; - VEC_free (so_list_ptr, pspace->added_solibs); - for (ix = 0; VEC_iterate (char_ptr, pspace->deleted_solibs, ix, name); ++ix) - xfree (name); - VEC_free (char_ptr, pspace->deleted_solibs); + + free_char_ptr_vec (pspace->deleted_solibs); + pspace->deleted_solibs = NULL; } |