File: src/_imagingmorph.c
Function: PyInit__imagingmorph
Error: memory leak: ob_refcnt of '*m' is 1 too high
255 PyMODINIT_FUNC
256 PyInit__imagingmorph(void) {
257     PyObject *m;
258 
259     static PyModuleDef module_def = {
260         PyModuleDef_HEAD_INIT,
261         "_imagingmorph",                       /* m_name */
262         "A module for doing image morphology", /* m_doc */
263         -1,                                    /* m_size */
264         functions,                             /* m_methods */
265     };
266 
267     m = PyModule_Create(&module_def);
when PyModule_Create2() succeeds
'*m' was allocated at:     m = PyModule_Create(&module_def);
ob_refcnt is now refs: 1 owned
268 
269     if (setup_module(m) < 0) {
when considering range: -0x80000000 <= value <= -1
taking True path
270         return NULL;
memory leak: ob_refcnt of '*m' is 1 too high
was expecting final owned ob_refcnt of '*m' to be 0 since nothing references it but final ob_refcnt is refs: 1 owned
271     }
272 
273     return m;
274 }

File: src/_imagingmorph.c
Function: PyInit__imagingmorph
Error: returning (PyObject*)NULL without setting an exception
255 PyMODINIT_FUNC
256 PyInit__imagingmorph(void) {
257     PyObject *m;
258 
259     static PyModuleDef module_def = {
260         PyModuleDef_HEAD_INIT,
261         "_imagingmorph",                       /* m_name */
262         "A module for doing image morphology", /* m_doc */
263         -1,                                    /* m_size */
264         functions,                             /* m_methods */
265     };
266 
267     m = PyModule_Create(&module_def);
when PyModule_Create2() succeeds
268 
269     if (setup_module(m) < 0) {
when considering range: -0x80000000 <= value <= -1
taking True path
270         return NULL;
returning (PyObject*)NULL without setting an exception
271     }
272 
273     return m;
274 }