File: zeneditor-interface.c
Function: zeneditor_module_init
Error: ob_refcnt of return value is 1 too low
458 PyObject *zeneditor_module_init(void) {
459 	PyObject *m;
460 
461 	zeneditorType.tp_new = PyType_GenericNew;
462 	if (PyType_Ready(&zeneditorType) < 0)
463 		return NULL;
when PyType_Ready() succeeds
taking False path
464 
465 	m = Py_InitModule3("bluefish_zeneditor", Module_methods, "Bluefish zeneditor interface");
466 
when Py_InitModule4_64() succeeds
borrowed reference returned by Py_InitModule4_64() allocated at: 	m = Py_InitModule3("bluefish_zeneditor", Module_methods, "Bluefish zeneditor interface");
ob_refcnt is now refs: 0 + N where N >= 1
467 	Py_INCREF(&zeneditorType);
468 	PyModule_AddObject(m, "zeneditor", (PyObject *) &zeneditorType);
469 
when PyModule_AddObject() succeeds
470 	return m;
471 }
472 
ob_refcnt of return value is 1 too low was expecting final ob_refcnt to be N + 1 (for some unknown N) due to object being referenced by: return value but final ob_refcnt is N + 0 found 1 similar trace(s) to this

File: zeneditor-interface.c
Function: zeneditor_module_init
Error: calling PyModule_AddObject with NULL as argument 1 (m) at zeneditor-interface.c:469
458 PyObject *zeneditor_module_init(void) {
459 	PyObject *m;
460 
461 	zeneditorType.tp_new = PyType_GenericNew;
462 	if (PyType_Ready(&zeneditorType) < 0)
463 		return NULL;
when PyType_Ready() succeeds
taking False path
464 
465 	m = Py_InitModule3("bluefish_zeneditor", Module_methods, "Bluefish zeneditor interface");
466 
when Py_InitModule4_64() fails
467 	Py_INCREF(&zeneditorType);
468 	PyModule_AddObject(m, "zeneditor", (PyObject *) &zeneditorType);
469 
calling PyModule_AddObject with NULL as argument 1 (m) at zeneditor-interface.c:469
PyModule_AddObject() invokes Py_TYPE() on the pointer via the PyModule_Check() macro, thus accessing (NULL)->ob_type
470 	return m;
471 }
472