[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-bugs] [Bug 1507] memory leak in pyxc_physinfo in xc.c
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1507 ------- Comment #1 from kingram@xxxxxxxxx 2009-09-22 07:30 ------- Created an attachment (id=877) --> (http://bugzilla.xensource.com/bugzilla/attachment.cgi?id=877&action=view) 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. -- Configure bugmail: http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. _______________________________________________ Xen-bugs mailing list Xen-bugs@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-bugs
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |