summaryrefslogtreecommitdiffstats
path: root/Modules/_lsprof.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_lsprof.c')
-rw-r--r--Modules/_lsprof.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c
index 8ffdf23..dddab8e 100644
--- a/Modules/_lsprof.c
+++ b/Modules/_lsprof.c
@@ -850,6 +850,8 @@ init_lsprof(void)
{
PyObject *module, *d;
module = Py_InitModule3("_lsprof", moduleMethods, "Fast profiler");
+ if (module == NULL)
+ return;
d = PyModule_GetDict(module);
if (PyType_Ready(&PyProfiler_Type) < 0)
return;