From: Jan Kratochvil Date: Mon, 9 Mar 2009 22:35:44 +0000 (+0000) Subject: * varobj.c (free_variable): Call value_free. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=36746093bb421cbad3a8afa2223a67565510f655;p=binutils-gdb.git * varobj.c (free_variable): Call value_free. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 821a5235a12..a0cace5ed1c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-03-09 Jan Kratochvil + + * varobj.c (free_variable): Call value_free. + 2009-03-09 Jan Kratochvil PR gdb/9873: diff --git a/gdb/varobj.c b/gdb/varobj.c index 2ec6d90f225..0147ecb931c 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -1512,6 +1512,8 @@ new_root_variable (void) static void free_variable (struct varobj *var) { + value_free (var->value); + /* Free the expression if this is a root variable. */ if (is_root_p (var)) {