From: vibisreenivasan <vibi_sreenivasan@cms.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>
Subject: [Qemu-devel] [PATCH] Use qemu_malloc & qemu_free instead of malloc & free
Date: Tue, 05 May 2009 15:39:19 +0530 [thread overview]
Message-ID: <1241518159.2162.4.camel@system> (raw)
Use qemu_malloc & qemu_free instead of malloc & free
Signed-off-by: vibi <vibi_sreenivasan@cms.com>
---
qemu-sockets.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/qemu-sockets.c b/qemu-sockets.c
index 4111f82..f918dc0 100644
--- a/qemu-sockets.c
+++ b/qemu-sockets.c
@@ -329,7 +329,7 @@ int unix_listen(const char *str, char *ostr, int
olen)
opts = strchr(str, ',');
if (opts) {
len = opts - str;
- path = malloc(len+1);
+ path = qemu_malloc(len+1);
snprintf(path, len+1, "%.*s", len, str);
} else
path = strdup(str);
@@ -365,11 +365,11 @@ int unix_listen(const char *str, char *ostr, int
olen)
if (sockets_debug)
fprintf(stderr, "bind(unix:%s): OK\n", un.sun_path);
- free(path);
+ qemu_free(path);
return sock;
err:
- free(path);
+ qemu_free(path);
closesocket(sock);
return -1;
}
--
1.6.0
next reply other threads:[~2009-05-05 10:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-05 10:09 vibisreenivasan [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-05-05 10:31 [Qemu-devel] [PATCH]:Use qemu_malloc & qemu_free instead of malloc & free vibisreenivasan
2009-05-05 12:50 ` Gerd Hoffmann
2009-05-06 7:21 ` vibisreenivasan
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=1241518159.2162.4.camel@system \
--to=vibi_sreenivasan@cms.com \
--cc=kraxel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.