]> xenbits.xensource.com Git - xen.git/commit
Fix memory leak in xend
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 11 Sep 2007 12:41:15 +0000 (13:41 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 11 Sep 2007 12:41:15 +0000 (13:41 +0100)
commit337e2014c73b7fd7dba693222fcd91bb40d8a42b
tree4ae29c965e7dfcf62cb435854135694e5be82b46
parent4a6a1afb1cd360b0b1c482d86aa25fd284e22b28
Fix memory leak in xend

I found that xend's memory usage grows considerably when running a
script such as

while true; do xm new foo ; sleep 2s; xm delete foo ; sleep 2s; done

XendAPIStore maintains a list of class instances and in the case of
new/create operation, an associated VMMetrics object is stashed in the
list but never removed on delete/shutdown.  This patch removes the
instance by invoking XendBase.destroy() method.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
tools/python/xen/xend/XendDomain.py