[mi] kill release_value calls
Vladimir Prus
ghost@cs.msu.su
Wed Jan 24 19:33:00 GMT 2007
This patch removes all calls to release_value in varobj.c, except
for one. We only need to call release_value when we're storing
a value for indefinite future use, and install_new_value is the
only such place. The extra release_value calls either
are time-consuming no-ops, or lead to memory leaks,
depending on the value type.
OK?
- Volodya
* varobj.c (c_value_of_root, c_value_of_child)
(cplus_value_of_child): Don't call release_value.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: release_value__gdb_mainline.diff
Type: text/x-diff
Size: 1380 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20070124/6e7e113b/attachment.bin>
More information about the Gdb-patches
mailing list