diff --git a/block/vdi.c b/block/vdi.c index 7dda5222eb4c9c984df5d0d98157ecee0cc49c7f..02da6b44d045eb558a0ef0f3b4a613b1868e633e 100644 --- a/block/vdi.c +++ b/block/vdi.c @@ -949,6 +949,9 @@ static int vdi_create(const char *filename, QEMUOptionParameter *options) static void vdi_close(BlockDriverState *bs) { BDRVVdiState *s = bs->opaque; + + g_free(s->bmap); + migrate_del_blocker(s->migration_blocker); error_free(s->migration_blocker); }