2007-08-17 Michael Snyder <msnyder@access-company.com>

* varobj.c (value_of_root): Memory leak.
This commit is contained in:
Michael Snyder 2007-08-17 23:17:30 +00:00
parent 0bd9908d01
commit 74dddad306
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2007-08-17 Michael Snyder <msnyder@access-company.com>
* varobj.c (value_of_root): Memory leak.
* gdbtypes.h (virtual_base_list): Remove export decl.
* gdbtypes.c (virtual_base_list): Make static. Not called outside.
(virtual_base_index): Memory leak.

View File

@ -1741,6 +1741,8 @@ value_of_root (struct varobj **var_handle, int *type_changed)
var = *var_handle;
*type_changed = 1;
}
xfree (old_type);
xfree (new_type);
}
else
{