We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1322439 commit 7187ee0Copy full SHA for 7187ee0
Python/marshal.c
@@ -1829,6 +1829,9 @@ PyMarshal_Init(void)
1829
PyObject *mod = PyModule_Create(&marshalmodule);
1830
if (mod == NULL)
1831
return NULL;
1832
- PyModule_AddIntConstant(mod, "version", Py_MARSHAL_VERSION);
+ if (PyModule_AddIntConstant(mod, "version", Py_MARSHAL_VERSION) < 0) {
1833
+ Py_DECREF(mod);
1834
+ return NULL;
1835
+ }
1836
return mod;
1837
}
0 commit comments