xend: fix file descriptor leak in pci utilities
authorXi Xiong <xixiong@amazon.com>
Fri, 30 Aug 2013 19:21:56 +0000 (12:21 -0700)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 3 Sep 2013 15:36:52 +0000 (16:36 +0100)
commit749019afca4fd002d36856bad002cc11f7d0ddda
tree5d469a64e0c33f629202a7c9716d1decca8e5f9c
parent1893cf77992cc0ce9d827a8d345437fa2494b540
xend: fix file descriptor leak in pci utilities

A file descriptor leak was detected after creating multiple domUs with
pass-through PCI devices. This patch fixes the issue.

Signed-off-by: Xi Xiong <xixiong@amazon.com>
Reviewed-by: Matt Wilson <msw@amazon.com>
[msw: adjusted commit message]
Signed-off-by: Matt Wilson <msw@amazon.com>
tools/python/xen/util/pci.py