diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-20 22:09:37 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-20 23:01:08 -0500 |
commit | 7267c0947d7e8ae5dff7bafd932c3bc285f43e5c (patch) | |
tree | 9aa05d6e05ed83e67bf014f6745a3081b8407dc5 /qemu-sockets.c | |
parent | 14015304b662e8f8ccce46c5a6927af6a14c510b (diff) |
Use glib memory allocation and free functions
qemu_malloc/qemu_free no longer exist after this commit.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-sockets.c')
-rw-r--r-- | qemu-sockets.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |