diff options
author | Michael Snyder <msnyder@vmware.com> | 2007-08-17 23:17:30 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2007-08-17 23:17:30 +0000 |
commit | 74dddad306a1f78d799830f4d3dd573d381b6d13 (patch) | |
tree | f8f367b37b38bcf5b6603692fe75b5303172c5cc /gdb | |
parent | 0bd9908d01330dd5369b35e62ea8d8d7ada01e03 (diff) | |
download | fsf-binutils-gdb-74dddad306a1f78d799830f4d3dd573d381b6d13.zip fsf-binutils-gdb-74dddad306a1f78d799830f4d3dd573d381b6d13.tar.gz fsf-binutils-gdb-74dddad306a1f78d799830f4d3dd573d381b6d13.tar.bz2 |
2007-08-17 Michael Snyder <msnyder@access-company.com>
* varobj.c (value_of_root): Memory leak.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 2 | ||||
-rw-r--r-- | gdb/varobj.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 908a3c8..821d62f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2007-08-17 Michael Snyder <msnyder@access-company.com> + * varobj.c (value_of_root): Memory leak. + * gdbtypes.h (virtual_base_list): Remove export decl. * gdbtypes.c (virtual_base_list): Make static. Not called outside. (virtual_base_index): Memory leak. 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 { |