diff options
author | Fernando Nasser <fnasser@redhat.com> | 2001-05-10 16:57:01 +0000 |
---|---|---|
committer | Fernando Nasser <fnasser@redhat.com> | 2001-05-10 16:57:01 +0000 |
commit | 50850dcd7c087fa18784b568574e95debcca1cbf (patch) | |
tree | 8ef2482d89d996819d5c36f3770970558535385e /gdb/varobj.c | |
parent | 60da8cd4d77ecea5f9341ec1d9261ef2e3669e13 (diff) | |
download | gdb-50850dcd7c087fa18784b568574e95debcca1cbf.tar.gz |
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.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r-- | gdb/varobj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c index c61c313f088..c62aecffd65 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -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 { |