aboutsummaryrefslogtreecommitdiff
path: root/gdb/varobj.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-08-17 23:17:30 +0000
committerMichael Snyder <msnyder@vmware.com>2007-08-17 23:17:30 +0000
commit74dddad306a1f78d799830f4d3dd573d381b6d13 (patch)
treef8f367b37b38bcf5b6603692fe75b5303172c5cc /gdb/varobj.c
parent0bd9908d01330dd5369b35e62ea8d8d7ada01e03 (diff)
downloadgdb-74dddad306a1f78d799830f4d3dd573d381b6d13.zip
gdb-74dddad306a1f78d799830f4d3dd573d381b6d13.tar.gz
gdb-74dddad306a1f78d799830f4d3dd573d381b6d13.tar.bz2
2007-08-17 Michael Snyder <msnyder@access-company.com>
* varobj.c (value_of_root): Memory leak.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r--gdb/varobj.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c
index be6df5e..fb3d696 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -1741,6 +1741,8 @@ value_of_root (struct varobj **var_handle, int *type_changed)
var = *var_handle;
*type_changed = 1;
}
+ xfree (old_type);
+ xfree (new_type);
}
else
{