]> Git Repo - qemu.git/blobdiff - blockdev.c
block: Use g_new() & friends where that makes obvious sense
[qemu.git] / blockdev.c
index 48bd9a37bc40beb525b19fd937908e03cc58f80e..8acd26440779d972153ce023f544342422952490 100644 (file)
@@ -1094,7 +1094,7 @@ SnapshotInfo *qmp_blockdev_snapshot_delete_internal_sync(const char *device,
         return NULL;
     }
 
-    info = g_malloc0(sizeof(SnapshotInfo));
+    info = g_new0(SnapshotInfo, 1);
     info->id = g_strdup(sn.id_str);
     info->name = g_strdup(sn.name);
     info->date_nsec = sn.date_nsec;
This page took 0.023051 seconds and 4 git commands to generate.