mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-24 02:37:23 +08:00
* python/py-evts.c (gdbpy_initialize_py_events): Don't
incref the module.
This commit is contained in:
@ -81,9 +81,6 @@ gdbpy_initialize_py_events (void)
|
||||
if (add_new_registry (&gdb_py_events.new_objfile, "new_objfile") < 0)
|
||||
return -1;
|
||||
|
||||
#ifndef IS_PY3K
|
||||
Py_INCREF (gdb_py_events.module);
|
||||
#endif
|
||||
if (PyModule_AddObject (gdb_module,
|
||||
"events",
|
||||
(PyObject *) gdb_py_events.module) < 0)
|
||||
|
Reference in New Issue
Block a user