mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
Free cgroup device ACL list on driver shutdown
* src/qemu/qemu_driver.c: Free cgroup ACLs
This commit is contained in:
parent
7cfbb17978
commit
db810b1148
@ -1071,6 +1071,7 @@ qemudActive(void) {
|
|||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
qemudShutdown(void) {
|
qemudShutdown(void) {
|
||||||
|
int i;
|
||||||
|
|
||||||
if (!qemu_driver)
|
if (!qemu_driver)
|
||||||
return -1;
|
return -1;
|
||||||
@ -1096,6 +1097,12 @@ qemudShutdown(void) {
|
|||||||
VIR_FREE(qemu_driver->hugetlbfs_mount);
|
VIR_FREE(qemu_driver->hugetlbfs_mount);
|
||||||
VIR_FREE(qemu_driver->hugepage_path);
|
VIR_FREE(qemu_driver->hugepage_path);
|
||||||
|
|
||||||
|
if (qemu_driver->cgroupDeviceACL) {
|
||||||
|
for (i = 0 ; qemu_driver->cgroupDeviceACL[i] != NULL ; i++)
|
||||||
|
VIR_FREE(qemu_driver->cgroupDeviceACL[i]);
|
||||||
|
VIR_FREE(qemu_driver->cgroupDeviceACL);
|
||||||
|
}
|
||||||
|
|
||||||
/* Free domain callback list */
|
/* Free domain callback list */
|
||||||
virDomainEventCallbackListFree(qemu_driver->domainEventCallbacks);
|
virDomainEventCallbackListFree(qemu_driver->domainEventCallbacks);
|
||||||
virDomainEventQueueFree(qemu_driver->domainEventQueue);
|
virDomainEventQueueFree(qemu_driver->domainEventQueue);
|
||||||
|
Loading…
Reference in New Issue
Block a user