mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-28 14:08:09 +08:00
* python/py-cmd.c (cmdpy_function): Unreference exception state.
This commit is contained in:
@ -192,7 +192,12 @@ cmdpy_function (struct cmd_list_element *command, char *args, int from_tty)
|
||||
error (_("Error occurred in Python command."));
|
||||
}
|
||||
else
|
||||
error ("%s", msg);
|
||||
{
|
||||
Py_XDECREF (ptype);
|
||||
Py_XDECREF (pvalue);
|
||||
Py_XDECREF (ptraceback);
|
||||
error ("%s", msg);
|
||||
}
|
||||
}
|
||||
|
||||
Py_DECREF (result);
|
||||
|
Reference in New Issue
Block a user