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:
Markus Armbruster 2013-01-15 15:24:16 +01:00 committed by Anthony Liguori
parent c23c15d30b
commit 038794cfe1

View File

@ -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;
}