File: | tests/cpychecker/refcounts/incorrect_py_none/input.c |
Function: | losing_refcnt_of_none |
Error: | ob_refcnt of return value is 1 too low |
22 PyObject *
23 losing_refcnt_of_none(PyObject *self, PyObject *args)
24 {
25 /* Bug: this code is missing a Py_INCREF on Py_None */
26 return Py_None;
returning
ob_refcnt of return value is 1 too low
consider using "Py_RETURN_NONE;"
27 }