From 7267c0947d7e8ae5dff7bafd932c3bc285f43e5c Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Sat, 20 Aug 2011 22:09:37 -0500 Subject: Use glib memory allocation and free functions qemu_malloc/qemu_free no longer exist after this commit. Signed-off-by: Anthony Liguori --- qemu-sockets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qemu-sockets.c') diff --git a/qemu-sockets.c b/qemu-sockets.c index eda1850e9c..183a9cbbd2 100644 --- a/qemu-sockets.c +++ b/qemu-sockets.c @@ -593,10 +593,10 @@ int unix_listen(const char *str, char *ostr, int olen) if (optstr) { len = optstr - str; if (len) { - path = qemu_malloc(len+1); + path = g_malloc(len+1); snprintf(path, len+1, "%.*s", len, str); qemu_opt_set(opts, "path", path); - qemu_free(path); + g_free(path); } } else { qemu_opt_set(opts, "path", str); -- cgit 1.4.1