mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-13 00:01:55 +00: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…
x
Reference in New Issue
Block a user