mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-25 11:04:18 +08:00
* python/py-cmd.c (cmdpy_function): Unreference exception state.
This commit is contained in:
parent
5d1268c689
commit
cca56ac7ae
@ -1,3 +1,7 @@
|
||||
2010-10-19 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* python/py-cmd.c (cmdpy_function): Unreference exception state.
|
||||
|
||||
2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
|
||||
|
||||
* gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user