]> Git Repo - qemu.git/blobdiff - migration/qemu-file-buf.c
migration: Use g_new() & friends where that makes obvious sense
[qemu.git] / migration / qemu-file-buf.c
index 1d9528e674c85475f655c89f79341b930fdd0247..e3fd0859d6f1e5ed0c3e4358b3ad47e8a99ff0f7 100644 (file)
@@ -440,7 +440,7 @@ QEMUFile *qemu_bufopen(const char *mode, QEMUSizedBuffer *input)
         return NULL;
     }
 
-    s = g_malloc0(sizeof(QEMUBuffer));
+    s = g_new0(QEMUBuffer, 1);
     s->qsb = input;
 
     if (s->qsb == NULL) {
This page took 0.022754 seconds and 4 git commands to generate.