vdi: Fix memory leak
The block map is allocated in vdi_open, but was never freed. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
3397f0cb48
commit
6ac5f3881f
|
@ -949,6 +949,9 @@ static int vdi_create(const char *filename, QEMUOptionParameter *options)
|
||||||
static void vdi_close(BlockDriverState *bs)
|
static void vdi_close(BlockDriverState *bs)
|
||||||
{
|
{
|
||||||
BDRVVdiState *s = bs->opaque;
|
BDRVVdiState *s = bs->opaque;
|
||||||
|
|
||||||
|
g_free(s->bmap);
|
||||||
|
|
||||||
migrate_del_blocker(s->migration_blocker);
|
migrate_del_blocker(s->migration_blocker);
|
||||||
error_free(s->migration_blocker);
|
error_free(s->migration_blocker);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue