forked from Imagelibrary/binutils-gdb
windows_clear_solib memory leak
gdb/ChangeLog: 2020-01-03 Hannes Domani <ssbssa@yahoo.de> * windows-nat.c (windows_clear_solib): Free so_list linked list.
This commit is contained in:
@@ -940,7 +940,14 @@ catch_errors (void (*func) ())
|
||||
static void
|
||||
windows_clear_solib (void)
|
||||
{
|
||||
solib_start.next = NULL;
|
||||
struct so_list *so;
|
||||
|
||||
for (so = solib_start.next; so; so = solib_start.next)
|
||||
{
|
||||
solib_start.next = so->next;
|
||||
windows_free_so (so);
|
||||
}
|
||||
|
||||
solib_end = &solib_start;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user