aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2013-01-15 15:24:16 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2013-01-15 18:25:41 -0600
commit038794cfe1c0eece8968418077e4af601acd5aff (patch)
tree3f35e56e0cfccfeeca8a83c8ec5a72b527efe903 /util
parentc23c15d30b901bb447cdcada96cae64c0046d146 (diff)
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>
Diffstat (limited to 'util')
-rw-r--r--util/acl.c4
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;
}