]> Git Repo - qemu.git/blobdiff - aio-posix.c
iotests: Add tests for refcount table growth
[qemu.git] / aio-posix.c
index d3ac06e238b565716f155a10f4827a2e66c14c14..cbd4c3438c2275a05e96d926e6114251a035e4a2 100644 (file)
@@ -73,7 +73,7 @@ void aio_set_fd_handler(AioContext *ctx,
     } else {
         if (node == NULL) {
             /* Alloc and insert if it's not already there */
-            node = g_malloc0(sizeof(AioHandler));
+            node = g_new0(AioHandler, 1);
             node->pfd.fd = fd;
             QLIST_INSERT_HEAD(&ctx->aio_handlers, node, node);
 
This page took 0.023264 seconds and 4 git commands to generate.