File: | src/_imaging.c |
Function: | _get_stats |
Error: | memory leak: ob_refcnt of PyLongObject is 1 too high |
3745 static PyObject *
3746 _get_stats(PyObject *self, PyObject *args) {
3747 PyObject *d;
3748 ImagingMemoryArena arena = &ImagingDefaultArena;
3749
3750 if (!PyArg_ParseTuple(args, ":get_stats")) {
when _PyArg_ParseTuple_SizeT() succeeds
taking False path
3751 return NULL;
3752 }
3753
3754 d = PyDict_New();
when PyDict_New() succeeds
3755 if (!d) {
taking False path
3756 return NULL;
3757 }
3758 PyDict_SetItemString(d, "new_count", PyLong_FromLong(arena->stats_new_count));
when PyLong_FromLong() succeeds
when PyDict_SetItemString() succeeds
PyLongObject was allocated at: PyDict_SetItemString(d, "new_count", PyLong_FromLong(arena->stats_new_count));
ob_refcnt is now refs: 1 owned
ob_refcnt is now refs: 1 owned, 1 borrowed
3759 PyDict_SetItemString(
when PyLong_FromLong() succeeds
when PyDict_SetItemString() fails
3760 d, "allocated_blocks", PyLong_FromLong(arena->stats_allocated_blocks));
3761 PyDict_SetItemString(
when PyLong_FromLong() succeeds
when PyDict_SetItemString() fails
3762 d, "reused_blocks", PyLong_FromLong(arena->stats_reused_blocks));
3763 PyDict_SetItemString(
when PyLong_FromLong() succeeds
when PyDict_SetItemString() fails
3764 d, "reallocated_blocks", PyLong_FromLong(arena->stats_reallocated_blocks));
3765 PyDict_SetItemString(d, "freed_blocks", PyLong_FromLong(arena->stats_freed_blocks));
when PyLong_FromLong() succeeds
when PyDict_SetItemString() succeeds
3766 PyDict_SetItemString(d, "blocks_cached", PyLong_FromLong(arena->blocks_cached));
when PyLong_FromLong() succeeds
when PyDict_SetItemString() succeeds
3767 return d;
memory leak: ob_refcnt of PyLongObject is 1 too high
was expecting final owned ob_refcnt of PyLongObject to be 0 since nothing references it but final ob_refcnt is refs: 1 owned, 1 borrowed
found 191 similar trace(s) to this
3768 }
File: | src/_imaging.c |
Function: | _get_stats |
Error: | calling PyDict_SetItemString with NULL as argument 3 (D.20514) at src/_imaging.c:3766 |
3745 static PyObject *
3746 _get_stats(PyObject *self, PyObject *args) {
3747 PyObject *d;
3748 ImagingMemoryArena arena = &ImagingDefaultArena;
3749
3750 if (!PyArg_ParseTuple(args, ":get_stats")) {
when _PyArg_ParseTuple_SizeT() succeeds
taking False path
3751 return NULL;
3752 }
3753
3754 d = PyDict_New();
when PyDict_New() succeeds
3755 if (!d) {
taking False path
3756 return NULL;
3757 }
3758 PyDict_SetItemString(d, "new_count", PyLong_FromLong(arena->stats_new_count));
when PyLong_FromLong() succeeds
when PyDict_SetItemString() succeeds
3759 PyDict_SetItemString(
when PyLong_FromLong() succeeds
when PyDict_SetItemString() fails
3760 d, "allocated_blocks", PyLong_FromLong(arena->stats_allocated_blocks));
3761 PyDict_SetItemString(
when PyLong_FromLong() succeeds
when PyDict_SetItemString() fails
3762 d, "reused_blocks", PyLong_FromLong(arena->stats_reused_blocks));
3763 PyDict_SetItemString(
when PyLong_FromLong() succeeds
when PyDict_SetItemString() fails
3764 d, "reallocated_blocks", PyLong_FromLong(arena->stats_reallocated_blocks));
3765 PyDict_SetItemString(d, "freed_blocks", PyLong_FromLong(arena->stats_freed_blocks));
when PyLong_FromLong() succeeds
when PyDict_SetItemString() succeeds
3766 PyDict_SetItemString(d, "blocks_cached", PyLong_FromLong(arena->blocks_cached));
when PyLong_FromLong() fails
calling PyDict_SetItemString with NULL as argument 3 (D.20514) at src/_imaging.c:3766
found 15 similar trace(s) to this
3767 return d;
3768 }
File: | src/_imaging.c |
Function: | _get_stats |
Error: | calling PyDict_SetItemString with NULL as argument 3 (D.20511) at src/_imaging.c:3765 |
3745 static PyObject *
3746 _get_stats(PyObject *self, PyObject *args) {
3747 PyObject *d;
3748 ImagingMemoryArena arena = &ImagingDefaultArena;
3749
3750 if (!PyArg_ParseTuple(args, ":get_stats")) {
when _PyArg_ParseTuple_SizeT() succeeds
taking False path
3751 return NULL;
3752 }
3753
3754 d = PyDict_New();
when PyDict_New() succeeds
3755 if (!d) {
taking False path
3756 return NULL;
3757 }
3758 PyDict_SetItemString(d, "new_count", PyLong_FromLong(arena->stats_new_count));
when PyLong_FromLong() succeeds
when PyDict_SetItemString() succeeds
3759 PyDict_SetItemString(
when PyLong_FromLong() succeeds
when PyDict_SetItemString() fails
3760 d, "allocated_blocks", PyLong_FromLong(arena->stats_allocated_blocks));
3761 PyDict_SetItemString(
when PyLong_FromLong() succeeds
when PyDict_SetItemString() fails
3762 d, "reused_blocks", PyLong_FromLong(arena->stats_reused_blocks));
3763 PyDict_SetItemString(
when PyLong_FromLong() succeeds
when PyDict_SetItemString() succeeds
3764 d, "reallocated_blocks", PyLong_FromLong(arena->stats_reallocated_blocks));
3765 PyDict_SetItemString(d, "freed_blocks", PyLong_FromLong(arena->stats_freed_blocks));
when PyLong_FromLong() fails
calling PyDict_SetItemString with NULL as argument 3 (D.20511) at src/_imaging.c:3765
found 6 similar trace(s) to this
3766 PyDict_SetItemString(d, "blocks_cached", PyLong_FromLong(arena->blocks_cached));
3767 return d;
3768 }
File: | src/_imaging.c |
Function: | _get_stats |
Error: | calling PyDict_SetItemString with NULL as argument 3 (D.20508) at src/_imaging.c:3763 |
3745 static PyObject *
3746 _get_stats(PyObject *self, PyObject *args) {
3747 PyObject *d;
3748 ImagingMemoryArena arena = &ImagingDefaultArena;
3749
3750 if (!PyArg_ParseTuple(args, ":get_stats")) {
when _PyArg_ParseTuple_SizeT() succeeds
taking False path
3751 return NULL;
3752 }
3753
3754 d = PyDict_New();
when PyDict_New() succeeds
3755 if (!d) {
taking False path
3756 return NULL;
3757 }
3758 PyDict_SetItemString(d, "new_count", PyLong_FromLong(arena->stats_new_count));
when PyLong_FromLong() succeeds
when PyDict_SetItemString() succeeds
3759 PyDict_SetItemString(
when PyLong_FromLong() succeeds
when PyDict_SetItemString() fails
3760 d, "allocated_blocks", PyLong_FromLong(arena->stats_allocated_blocks));
3761 PyDict_SetItemString(
when PyLong_FromLong() succeeds
when PyDict_SetItemString() succeeds
3762 d, "reused_blocks", PyLong_FromLong(arena->stats_reused_blocks));
3763 PyDict_SetItemString(
when PyLong_FromLong() fails
calling PyDict_SetItemString with NULL as argument 3 (D.20508) at src/_imaging.c:3763
found 2 similar trace(s) to this
3764 d, "reallocated_blocks", PyLong_FromLong(arena->stats_reallocated_blocks));
3765 PyDict_SetItemString(d, "freed_blocks", PyLong_FromLong(arena->stats_freed_blocks));
3766 PyDict_SetItemString(d, "blocks_cached", PyLong_FromLong(arena->blocks_cached));
3767 return d;
3768 }
File: | src/_imaging.c |
Function: | _get_stats |
Error: | calling PyDict_SetItemString with NULL as argument 3 (D.20505) at src/_imaging.c:3761 |
3745 static PyObject *
3746 _get_stats(PyObject *self, PyObject *args) {
3747 PyObject *d;
3748 ImagingMemoryArena arena = &ImagingDefaultArena;
3749
3750 if (!PyArg_ParseTuple(args, ":get_stats")) {
when _PyArg_ParseTuple_SizeT() succeeds
taking False path
3751 return NULL;
3752 }
3753
3754 d = PyDict_New();
when PyDict_New() succeeds
3755 if (!d) {
taking False path
3756 return NULL;
3757 }
3758 PyDict_SetItemString(d, "new_count", PyLong_FromLong(arena->stats_new_count));
when PyLong_FromLong() succeeds
when PyDict_SetItemString() succeeds
3759 PyDict_SetItemString(
when PyLong_FromLong() succeeds
when PyDict_SetItemString() succeeds
3760 d, "allocated_blocks", PyLong_FromLong(arena->stats_allocated_blocks));
3761 PyDict_SetItemString(
when PyLong_FromLong() fails
calling PyDict_SetItemString with NULL as argument 3 (D.20505) at src/_imaging.c:3761
3762 d, "reused_blocks", PyLong_FromLong(arena->stats_reused_blocks));
3763 PyDict_SetItemString(
3764 d, "reallocated_blocks", PyLong_FromLong(arena->stats_reallocated_blocks));
3765 PyDict_SetItemString(d, "freed_blocks", PyLong_FromLong(arena->stats_freed_blocks));
3766 PyDict_SetItemString(d, "blocks_cached", PyLong_FromLong(arena->blocks_cached));
3767 return d;
3768 }