mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xl: Call xlu_cfg_destroy in the pciattach and pcidetach
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com>
This commit is contained in:
1 parent
484b7df841
commit
970e7de0e2
1 file changed
+4
@@ -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)
|
||||
|
||||