This is just test code, but sometimes external contributors reference the code snippets from test code.
`PyModule_AddObject` should be handled in the proper way.
https://docs.python.org/3/c-api/module.html#c.PyModule_AddObject
goto fail;
}
if (PyModule_AddObject(m, "Example", temp) != 0) {
+ Py_DECREF(temp);
goto fail;
}
goto fail;
}
if (PyModule_AddObject(m, "error", temp) != 0) {
+ Py_DECREF(temp);
goto fail;
}
goto fail;
}
if (PyModule_AddObject(m, "Str", temp) != 0) {
+ Py_DECREF(temp);
goto fail;
}
return -1;
}
if (PyModule_AddObject(m, "StateAccessType", temp) != 0) {
+ Py_DECREF(temp);
return -1;
}