diff options
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-value.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index 0b2a38f..0d87219 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -769,11 +769,17 @@ valpy_binop (enum valpy_opcode opcode, PyObject *self, PyObject *other) a gdb.Value object and need to convert it from python as well. */ arg1 = convert_value_from_python (self); if (arg1 == NULL) - break; + { + do_cleanups (cleanup); + break; + } arg2 = convert_value_from_python (other); if (arg2 == NULL) - break; + { + do_cleanups (cleanup); + break; + } switch (opcode) { |