summaryrefslogtreecommitdiffstats
path: root/Modules/mathmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r--Modules/mathmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
index a5fec15..e7fc6dd 100644
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -355,6 +355,8 @@ initmath(void)
PyObject *m, *d, *v;
m = Py_InitModule3("math", math_methods, module_doc);
+ if (m == NULL)
+ goto finally;
d = PyModule_GetDict(m);
if (!(v = PyFloat_FromDouble(atan(1.0) * 4.0)))