File: | src/_imagingmath.c |
Function: | PyInit__imagingmath |
Error: | memory leak: ob_refcnt of '*m' is 1 too high |
275 PyMODINIT_FUNC
276 PyInit__imagingmath(void) {
277 PyObject *m;
278
279 static PyModuleDef module_def = {
280 PyModuleDef_HEAD_INIT,
281 "_imagingmath", /* m_name */
282 NULL, /* m_doc */
283 -1, /* m_size */
284 _functions, /* m_methods */
285 };
286
287 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
288
289 if (setup_module(m) < 0) {
when considering range: -0x80000000 <= value <= -1
taking True path
290 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
291 }
292
293 return m;
294 }
File: | src/_imagingmath.c |
Function: | PyInit__imagingmath |
Error: | returning (PyObject*)NULL without setting an exception |
275 PyMODINIT_FUNC
276 PyInit__imagingmath(void) {
277 PyObject *m;
278
279 static PyModuleDef module_def = {
280 PyModuleDef_HEAD_INIT,
281 "_imagingmath", /* m_name */
282 NULL, /* m_doc */
283 -1, /* m_size */
284 _functions, /* m_methods */
285 };
286
287 m = PyModule_Create(&module_def);
when PyModule_Create2() succeeds
288
289 if (setup_module(m) < 0) {
when considering range: -0x80000000 <= value <= -1
taking True path
290 return NULL;
returning (PyObject*)NULL without setting an exception
291 }
292
293 return m;
294 }