mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
2011-03-04 Michael Snyder <msnyder@vmware.com>
* solib.c (reload_shared_libraries_1): Close memory leak.
This commit is contained in:
@ -1326,6 +1326,7 @@ reload_shared_libraries_1 (int from_tty)
|
||||
SYMFILE_DEFER_BP_RESET | (from_tty ? SYMFILE_VERBOSE : 0);
|
||||
|
||||
filename = tilde_expand (so->so_original_name);
|
||||
make_cleanup (xfree, filename);
|
||||
abfd = solib_bfd_open (filename);
|
||||
if (abfd != NULL)
|
||||
{
|
||||
|
Reference in New Issue
Block a user