mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
security: replace VIR_FREE with g_free in all vir*Free() functions
Signed-off-by: Laine Stump <laine@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
cb5cbf722e
commit
a9e72390e8
@ -141,12 +141,12 @@ virSecurityDACChownListFree(void *opaque)
|
||||
return;
|
||||
|
||||
for (i = 0; i < list->nItems; i++) {
|
||||
VIR_FREE(list->items[i]->path);
|
||||
VIR_FREE(list->items[i]);
|
||||
g_free(list->items[i]->path);
|
||||
g_free(list->items[i]);
|
||||
}
|
||||
VIR_FREE(list->items);
|
||||
g_free(list->items);
|
||||
virObjectUnref(list->manager);
|
||||
VIR_FREE(list);
|
||||
g_free(list);
|
||||
}
|
||||
|
||||
|
||||
|
@ -108,9 +108,9 @@ virSecuritySELinuxContextItemFree(virSecuritySELinuxContextItemPtr item)
|
||||
if (!item)
|
||||
return;
|
||||
|
||||
VIR_FREE(item->path);
|
||||
VIR_FREE(item->tcon);
|
||||
VIR_FREE(item);
|
||||
g_free(item->path);
|
||||
g_free(item->tcon);
|
||||
g_free(item);
|
||||
}
|
||||
|
||||
static int
|
||||
@ -152,9 +152,9 @@ virSecuritySELinuxContextListFree(void *opaque)
|
||||
for (i = 0; i < list->nItems; i++)
|
||||
virSecuritySELinuxContextItemFree(list->items[i]);
|
||||
|
||||
VIR_FREE(list->items);
|
||||
g_free(list->items);
|
||||
virObjectUnref(list->manager);
|
||||
VIR_FREE(list);
|
||||
g_free(list);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user