From: Markus Armbruster <armbru@redhat.com>
To: qemu-devel@nongnu.org
Cc: pbonzini@redhat.com, aliguori@us.ibm.com
Subject: [Qemu-devel] [PATCH 2/2] acl: Free memory allocated with g_malloc() with g_free()
Date: Tue, 15 Jan 2013 15:24:16 +0100 [thread overview]
Message-ID: <1358259856-9422-3-git-send-email-armbru@redhat.com> (raw)
In-Reply-To: <1358259856-9422-1-git-send-email-armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
util/acl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/util/acl.c b/util/acl.c
index 21b2205..a7f33ff 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;
}
--
1.7.11.7
next prev parent reply other threads:[~2013-01-15 14:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-15 14:24 [Qemu-devel] [PATCH 0/2] ACL fixes Markus Armbruster
2013-01-15 14:24 ` [Qemu-devel] [PATCH 1/2] acl: Fix acl_remove not to mess up the ACL Markus Armbruster
2013-01-15 14:24 ` Markus Armbruster [this message]
2013-01-16 1:43 ` [Qemu-devel] [PATCH 0/2] ACL fixes Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1358259856-9422-3-git-send-email-armbru@redhat.com \
--to=armbru@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).