On Mon, 2015-08-31 at 13:04 +0100, Wei Liu wrote:
> On Fri, Aug 28, 2015 at 05:35:18PM -0400, Zhigang Wang wrote:
> > Python PyList_Append() will increase reference count of the item. We
> > have to
> > decrease its reference count to let it garbage collected.
> >
> > We missed the Py_DECREF() fo
On Mon, 2015-08-31 at 13:32 +0100, Wei Liu wrote:
> On Mon, Aug 31, 2015 at 01:27:35PM +0100, Andrew Cooper wrote:
> > On 31/08/2015 13:04, Wei Liu wrote:
> > > On Fri, Aug 28, 2015 at 05:35:18PM -0400, Zhigang Wang wrote:
> > > > Python PyList_Append() will increase reference count of the item.
>
On Mon, Aug 31, 2015 at 01:27:35PM +0100, Andrew Cooper wrote:
> On 31/08/2015 13:04, Wei Liu wrote:
> > On Fri, Aug 28, 2015 at 05:35:18PM -0400, Zhigang Wang wrote:
> >> Python PyList_Append() will increase reference count of the item. We have
> >> to
> >> decrease its reference count to let it
On 31/08/2015 13:04, Wei Liu wrote:
> On Fri, Aug 28, 2015 at 05:35:18PM -0400, Zhigang Wang wrote:
>> Python PyList_Append() will increase reference count of the item. We have to
>> decrease its reference count to let it garbage collected.
>>
>> We missed the Py_DECREF() for 'cpuinfo_obj' here, th
On Fri, Aug 28, 2015 at 05:35:18PM -0400, Zhigang Wang wrote:
> Python PyList_Append() will increase reference count of the item. We have to
> decrease its reference count to let it garbage collected.
>
> We missed the Py_DECREF() for 'cpuinfo_obj' here, thus we have a memory leak.
>
> The memory
Python PyList_Append() will increase reference count of the item. We have to
decrease its reference count to let it garbage collected.
We missed the Py_DECREF() for 'cpuinfo_obj' here, thus we have a memory leak.
The memory leak could be easily confirmed by:
# python
>>> import xen.lowlevel.