90 */
91 void py_dissector_register(PyObject * py_dissector)
92 {
93 /**
94 * Register protocol, fields, subtrees
95 *
96 * Done by calling register method of the object
97 */
98 PyObject_CallMethod(py_dissector, "register_protocol", NULL);
when PyObject_CallMethod() succeeds
new ref from call to PyObject_CallMethod allocated at: PyObject_CallMethod(py_dissector, "register_protocol", NULL);
ob_refcnt is now refs: 1 + N where N >= 0
99
100 }
returning
ob_refcnt of new ref from call to PyObject_CallMethod is 1 too high
was expecting final ob_refcnt to be N + 0 (for some unknown N)
but final ob_refcnt is N + 1