mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
acl: Free memory allocated with g_malloc() with g_free()
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
c23c15d30b
commit
038794cfe1
1 changed files with 2 additions and 2 deletions
|
@ -103,8 +103,8 @@ void qemu_acl_reset(qemu_acl *acl)
|
|||
acl->defaultDeny = 1;
|
||||
QTAILQ_FOREACH_SAFE(entry, &acl->entries, next, next_entry) {
|
||||
QTAILQ_REMOVE(&acl->entries, entry, next);
|
||||
free(entry->match);
|
||||
free(entry);
|
||||
g_free(entry->match);
|
||||
g_free(entry);
|
||||
}
|
||||
acl->nentries = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue