[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 2 of 3] xl: Call xlu_cfg_destroy in the pciattach and pcidetach



Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>

diff -r 66ee1a4de61a -r 25a5ebd0117f tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c  Fri May 11 14:45:30 2012 +0100
+++ b/tools/libxl/xl_cmdimpl.c  Fri May 11 14:49:22 2012 +0100
@@ -2277,7 +2277,9 @@ static void pcidetach(const char *dom, c
         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)
@@ -2319,7 +2321,9 @@ static void pciattach(const char *dom, c
         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)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.