From 081cfab559e8cd42d890c9d84c7bf553b820b327 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Mon, 8 Oct 2012 01:26:07 +0200 Subject: [PATCH] dom0/core: do not leak xs transaction and use it in all xs calls --- dom0/qvm-core/qubesutils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom0/qvm-core/qubesutils.py b/dom0/qvm-core/qubesutils.py index 8c015039..ad8f98cb 100644 --- a/dom0/qvm-core/qubesutils.py +++ b/dom0/qvm-core/qubesutils.py @@ -201,11 +201,12 @@ def block_list(vm = None, system_disks = False): vm_list = [] if vm is not None: if not vm.is_running(): + xs.transaction_end(xs_trans) return [] else: vm_list = [ str(vm.xid) ] else: - vm_list = xs.ls('', '/local/domain') + vm_list = xs.ls(xs_trans, '/local/domain') devices_list = {} for xid in vm_list: