File: | src/_imaging.c |
Function: | PyInit__imaging |
Error: | memory leak: ob_refcnt of '*m' is 1 too high |
4226 PyMODINIT_FUNC
4227 PyInit__imaging(void) {
4228 PyObject *m;
4229
4230 static PyModuleDef module_def = {
4231 PyModuleDef_HEAD_INIT,
4232 "_imaging", /* m_name */
4233 NULL, /* m_doc */
4234 -1, /* m_size */
4235 functions, /* m_methods */
4236 };
4237
4238 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
4239
4240 if (setup_module(m) < 0) {
when considering range: -0x80000000 <= value <= -1
taking True path
4241 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
4242 }
4243
4244 return m;
4245 }
File: | src/_imaging.c |
Function: | PyInit__imaging |
Error: | returning (PyObject*)NULL without setting an exception |
4226 PyMODINIT_FUNC
4227 PyInit__imaging(void) {
4228 PyObject *m;
4229
4230 static PyModuleDef module_def = {
4231 PyModuleDef_HEAD_INIT,
4232 "_imaging", /* m_name */
4233 NULL, /* m_doc */
4234 -1, /* m_size */
4235 functions, /* m_methods */
4236 };
4237
4238 m = PyModule_Create(&module_def);
when PyModule_Create2() succeeds
4239
4240 if (setup_module(m) < 0) {
when considering range: -0x80000000 <= value <= -1
taking True path
4241 return NULL;
returning (PyObject*)NULL without setting an exception
4242 }
4243
4244 return m;
4245 }