Message337301
Coverity scan reports a leak on _hotshot.c:
Python-2.7.15/Modules/_hotshot.c:442: alloc_arg: "unpack_string" allocates memory that is stored into "s1".
Python-2.7.15/Modules/_hotshot.c:329:5: alloc_fn: Storage is returned from allocation function "PyString_FromStringAndSize".
Python-2.7.15/Objects/stringobject.c:88:5: alloc_fn: Storage is returned from allocation function "PyObject_Malloc".
Python-2.7.15/Objects/obmalloc.c:982:5: alloc_fn: Storage is returned from allocation function "malloc".
Python-2.7.15/Objects/obmalloc.c:982:5: return_alloc_fn: Directly returning storage allocated by "malloc".
Python-2.7.15/Objects/stringobject.c:88:5: var_assign: Assigning: "op" = "PyObject_Malloc(37UL + size)".
Python-2.7.15/Objects/stringobject.c:111:5: return_alloc: Returning allocated memory "op".
Python-2.7.15/Modules/_hotshot.c:329:5: var_assign: Assigning: "*pvalue" = "PyString_FromStringAndSize(buf, len)".
Python-2.7.15/Modules/_hotshot.c:486: leaked_storage: Variable "s1" going out of scope leaks the storage it points to.
484| result = PyTuple_New(4);
485| if (result == NULL)
486|-> return NULL;
487| PyTuple_SET_ITEM(result, 0, PyInt_FromLong(what));
488| PyTuple_SET_ITEM(result, 2, PyInt_FromLong(fileno)); |
|
Date |
User |
Action |
Args |
2019-03-06 13:57:29 | cstratak | set | recipients:
+ cstratak |
2019-03-06 13:57:29 | cstratak | set | messageid: <1551880649.05.0.0730481787231.issue36212@roundup.psfhosted.org> |
2019-03-06 13:57:29 | cstratak | link | issue36212 messages |
2019-03-06 13:57:28 | cstratak | create | |
|