There was an error while loading. Please reload this page.
1 parent 3879333 commit 105906fCopy full SHA for 105906f
1 file changed
Modules/errnomodule.c
@@ -101,7 +101,7 @@ initerrno()
101
m = Py_InitModule3("errno", errno_methods, errno__doc__);
102
d = PyModule_GetDict(m);
103
de = PyDict_New();
104
- if (de == NULL || PyDict_SetItemString(d,"errorcode",de))
+ if (de == NULL || PyDict_SetItemString(d, "errorcode", de))
105
Py_FatalError("can't initialize errno module");
106
107
/* Macro so I don't have to edit each and every line below... */
@@ -824,4 +824,5 @@ initerrno()
824
inscode(d, ds, de, "WSAN", WSAN, "Error WSAN");
825
#endif
826
827
+ Py_DECREF(de);
828
}
0 commit comments