diff options
Diffstat (limited to 'migration/qemu-file-buf.c')
-rw-r--r-- | migration/qemu-file-buf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/qemu-file-buf.c b/migration/qemu-file-buf.c index 1d9528e..e3fd085 100644 --- a/migration/qemu-file-buf.c +++ b/migration/qemu-file-buf.c @@ -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) { |