summaryrefslogtreecommitdiffstats
path: root/Modules/errnomodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/errnomodule.c')
-rw-r--r--Modules/errnomodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/errnomodule.c b/Modules/errnomodule.c
index f18a655..ee0aaf1 100644
--- a/Modules/errnomodule.c
+++ b/Modules/errnomodule.c
@@ -101,7 +101,7 @@ initerrno()
m = Py_InitModule3("errno", errno_methods, errno__doc__);
d = PyModule_GetDict(m);
de = PyDict_New();
- if (de == NULL || PyDict_SetItemString(d,"errorcode",de))
+ if (de == NULL || PyDict_SetItemString(d, "errorcode", de))
Py_FatalError("can't initialize errno module");
/* Macro so I don't have to edit each and every line below... */
@@ -824,4 +824,5 @@ initerrno()
inscode(d, ds, de, "WSAN", WSAN, "Error WSAN");
#endif
+ Py_DECREF(de);
}