From: George Dunlap Date: Fri, 11 May 2012 16:34:23 +0000 (+0100) Subject: xl: Call xlu_cfg_destroy in the pciattach and pcidetach X-Git-Tag: 4.2.0-rc1~394 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=970e7de0e21721e3de77a44fa800c95a19bdaabc;p=xen.git xl: Call xlu_cfg_destroy in the pciattach and pcidetach Signed-off-by: George Dunlap Acked-by: Ian Jackson Committed-by: Ian Jackson --- diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 70b848eb10..7df90d75af 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -2298,7 +2298,9 @@ static void pcidetach(const char *dom, const char *bdf, int force) libxl_device_pci_destroy(ctx, domid, &pcidev); else libxl_device_pci_remove(ctx, domid, &pcidev); + libxl_device_pci_dispose(&pcidev); + xlu_cfg_destroy(config); } int main_pcidetach(int argc, char **argv) @@ -2340,7 +2342,9 @@ static void pciattach(const char *dom, const char *bdf, const char *vs) exit(2); } libxl_device_pci_add(ctx, domid, &pcidev); + libxl_device_pci_dispose(&pcidev); + xlu_cfg_destroy(config); } int main_pciattach(int argc, char **argv)