]> git.proxmox.com Git - qemu.git/blobdiff - qemu-nbd.c
Use glib memory allocation and free functions
[qemu.git] / qemu-nbd.c
index d91c02ce4976cc196ce9c3a97d5ce8b86dfc4684..0b25a4dd4864ea21fe7720bfb9da31176642bde4 100644 (file)
@@ -431,7 +431,7 @@ int main(int argc, char **argv)
         /* children */
     }
 
-    sharing_fds = qemu_malloc((shared + 1) * sizeof(int));
+    sharing_fds = g_malloc((shared + 1) * sizeof(int));
 
     if (socket) {
         sharing_fds[0] = unix_socket_incoming(socket);
@@ -491,7 +491,7 @@ int main(int argc, char **argv)
 
     close(sharing_fds[0]);
     bdrv_close(bs);
-    qemu_free(sharing_fds);
+    g_free(sharing_fds);
     if (socket)
         unlink(socket);