From: Jan Kratochvil Date: Wed, 22 Apr 2009 17:50:54 +0000 (+0000) Subject: gdb/ X-Git-Tag: sid-snapshot-20090501~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3038237c753d7e8e0a39e47af0d664e1780da563;p=thirdparty%2Fbinutils-gdb.git gdb/ * varobj.c (free_variable): Replace free_current_contents by xfree. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3740c81d853..9cadc1541ad 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-04-22 Jan Kratochvil + + * varobj.c (free_variable): Replace free_current_contents by xfree. + 2009-04-22 Kazu Hirata * arm-linux-nat.c (fetch_register, store_register): Use 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); }