Fix segfault on exit
This commit is contained in:
parent
60336d1c5f
commit
8700bbc4f1
1 changed files with 1 additions and 0 deletions
|
|
@ -57,6 +57,7 @@ create_python_submodule(PyObject* parent, const char* name,
|
|||
if (-1 == PyModule_AddObject(parent, name, submod)) {
|
||||
return NULL;
|
||||
}
|
||||
Py_INCREF(submod); // otherwise, it would segfault on exit
|
||||
return submod;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue