* varobj.c (free_variable): Replace free_current_contents by xfree.
This commit is contained in:
Jan Kratochvil 2009-04-22 17:50:54 +00:00
parent 83eba9b72c
commit 3038237c75
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
* varobj.c (free_variable): Replace free_current_contents by xfree.
2009-04-22 Kazu Hirata <kazu@codesourcery.com>
* arm-linux-nat.c (fetch_register, store_register): Use

View File

@ -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);
}