]> git.proxmox.com Git - qemu.git/blobdiff - qemu-sockets.c
qemu-nbd: print error messages from the daemon through a pipe
[qemu.git] / qemu-sockets.c
index eda1850e9c6a02a1ae52af465c78fc31bf7e9573..183a9cbbd2837e8407faa7651aa8b72e4c9e3d93 100644 (file)
@@ -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);