2008-10-23 Paul Pluzhnikov <ppluzhnikov@google.com>
* python/python-value (valpy_getitem): Fix heap corruption.
This commit is contained in:
parent
103fd00dc6
commit
3c0ed2996e
2 changed files with 6 additions and 1 deletions
|
@ -161,7 +161,8 @@ valpy_getitem (PyObject *self, PyObject *key)
|
|||
|
||||
TRY_CATCH (except, RETURN_MASK_ALL)
|
||||
{
|
||||
res_val = value_struct_elt (&self_value->value, NULL, field, 0, NULL);
|
||||
struct value *tmp = self_value->value;
|
||||
res_val = value_struct_elt (&tmp, NULL, field, 0, NULL);
|
||||
}
|
||||
GDB_PY_HANDLE_EXCEPTION (except);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue