mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 11:23:43 +08: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
@ -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…
Reference in New Issue
Block a user