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:
Michal Privoznik
2018-09-26 12:01:32 +02:00
parent 9580c09163
commit 72a8b8ecc5
+1
View File
@@ -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);
}