From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1HsM-0003Jd-TH for qemu-devel@nongnu.org; Tue, 05 May 2009 06:27:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1HsH-0003JC-Fa for qemu-devel@nongnu.org; Tue, 05 May 2009 06:27:48 -0400 Received: from [199.232.76.173] (port=58571 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1HsH-0003J9-9H for qemu-devel@nongnu.org; Tue, 05 May 2009 06:27:45 -0400 Received: from mailgw3.cms.com ([202.75.200.223]:12731 helo=cms.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M1HsF-0007Js-HD for qemu-devel@nongnu.org; Tue, 05 May 2009 06:27:45 -0400 From: vibisreenivasan Content-Type: text/plain Date: Tue, 05 May 2009 15:39:19 +0530 Message-Id: <1241518159.2162.4.camel@system> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Resent-Message-Id: Subject: [Qemu-devel] [PATCH] Use qemu_malloc & qemu_free instead of malloc & free Reply-To: vibi_sreenivasan@cms.com List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Use qemu_malloc & qemu_free instead of malloc & free Signed-off-by: vibi --- 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