2001-05-10 Fernando Nasser <fnasser@redhat.com>

* varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
	variables, not just unregister them.
This commit is contained in:
Fernando Nasser 2001-05-10 16:57:01 +00:00
parent 0755e6c1ab
commit f7635dd920
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-05-10 Fernando Nasser <fnasser@redhat.com>
* varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
variables, not just unregister them.
2001-05-10 Fernando Nasser <fnasser@redhat.com>
* varobj.c (c_number_of_children): Check for target type of void*,

View File

@ -1639,7 +1639,7 @@ value_of_root (struct varobj **var_handle, int *type_changed)
{
tmp_var->obj_name =
savestring (var->obj_name, strlen (var->obj_name));
uninstall_variable (var);
varobj_delete (var, NULL, 0);
}
else
{