mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 03:21:44 +03:00
virSecuritySELinuxContextListFree: Don't leak list->items
This array is allocated in virSecuritySELinuxContextListAppend()
but never freed. This commit is essentially the same as ca25026
.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
9580c09163
commit
72a8b8ecc5
@ -156,6 +156,7 @@ virSecuritySELinuxContextListFree(void *opaque)
|
||||
for (i = 0; i < list->nItems; i++)
|
||||
virSecuritySELinuxContextItemFree(list->items[i]);
|
||||
|
||||
VIR_FREE(list->items);
|
||||
VIR_FREE(list);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user