mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-19 08:22:36 +08:00
* python/py-event.c (gdbpy_initialize_event_generic): Return
early if PyType_Ready fails.
This commit is contained in:
@ -76,7 +76,7 @@ gdbpy_initialize_event_generic (PyTypeObject *type,
|
||||
char *name)
|
||||
{
|
||||
if (PyType_Ready (type) < 0)
|
||||
goto fail;
|
||||
return -1;
|
||||
|
||||
Py_INCREF (type);
|
||||
if (PyModule_AddObject (gdb_module, name, (PyObject *) type) < 0)
|
||||
|
Reference in New Issue
Block a user