diff options
author | Markus Armbruster <armbru@redhat.com> | 2013-01-15 15:24:16 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-01-15 18:25:41 -0600 |
commit | 038794cfe1c0eece8968418077e4af601acd5aff (patch) | |
tree | 3f35e56e0cfccfeeca8a83c8ec5a72b527efe903 | |
parent | c23c15d30b901bb447cdcada96cae64c0046d146 (diff) | |
download | qemu-038794cfe1c0eece8968418077e4af601acd5aff.tar.gz qemu-038794cfe1c0eece8968418077e4af601acd5aff.tar.bz2 qemu-038794cfe1c0eece8968418077e4af601acd5aff.zip |
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>
-rw-r--r-- | util/acl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/acl.c b/util/acl.c index 21b2205fa1..a7f33ff7bb 100644 --- a/util/acl.c +++ b/util/acl.c @@ -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; } |