summaryrefslogtreecommitdiff
path: root/gdb/varobj.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-04-22 17:50:54 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-04-22 17:50:54 +0000
commit9727f0b23c153de60528c433b1362f1f5d1d748a (patch)
tree5fd93d7c4cdc64ce46fbd8be104012ca7a943e65 /gdb/varobj.c
parentd344514af6d15a4bd219e58fa62548cb80313a05 (diff)
downloadgdb-9727f0b23c153de60528c433b1362f1f5d1d748a.tar.gz
gdb/
* varobj.c (free_variable): Replace free_current_contents by xfree.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r--gdb/varobj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c
index a7957f698b4..8ec67b77cf1 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -1517,7 +1517,7 @@ free_variable (struct varobj *var)
/* Free the expression if this is a root variable. */
if (is_root_p (var))
{
- free_current_contents (&var->root->exp);
+ xfree (var->root->exp);
xfree (var->root);
}