926 static void
927 PyShmSemaphore_dealloc(
928 PyShmSemObj *self)
929 {
930 /* del sem_dict[key], ignore if it fails */
931 if (PyDict_DelItem(sem_dict, PyInt_FromLong(self->semid)) == -1)
when PyInt_FromLong() succeeds
when considering range: -0x80000000 <= value <= -2
taking False path
PyIntObject allocated at: if (PyDict_DelItem(sem_dict, PyInt_FromLong(self->semid)) == -1)
ob_refcnt is now refs: 1 + N where N >= 0
932 PyErr_Clear();
933 PyObject_DEL(self);
934 }
returning
ob_refcnt of PyIntObject is 1 too high
was expecting final ob_refcnt to be N + 0 (for some unknown N)
but final ob_refcnt is N + 1
found 2 similar trace(s) to this