mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-23 18:26:47 +08:00
* python/py-param.c (compute_enum_values): Decref 'item'.
This commit is contained in:
@ -611,12 +611,14 @@ compute_enum_values (parmpy_object *self, PyObject *enum_values)
|
||||
}
|
||||
if (! gdbpy_is_string (item))
|
||||
{
|
||||
Py_DECREF (item);
|
||||
do_cleanups (back_to);
|
||||
PyErr_SetString (PyExc_RuntimeError,
|
||||
_("The enumeration item not a string."));
|
||||
return 0;
|
||||
}
|
||||
self->enumeration[i] = python_string_to_host_string (item);
|
||||
Py_DECREF (item);
|
||||
if (self->enumeration[i] == NULL)
|
||||
{
|
||||
do_cleanups (back_to);
|
||||
|
Reference in New Issue
Block a user