------- Comment #1 from kingram@xxxxxxxxx 2009-09-22 07:30 -------
Created an attachment (id=877)
patch for tools/python/xen/lowlevel/xc/xc.c
I believe this patch fixes the physinfo memory leak.
It adds calls to Py_DECREF for the lists that get created and added to the
return map (node_to_cpu_obj, cpus, node_to_memory_obj). If their reference
counts are not decremented they never get garbage collected.
I don't have a Xen development environment so it's not fully tested. I made a
standalone version of the function that leaks, stubbing out lower level calls,
and then fixed the reference counting in that.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Xen-bugs mailing list