mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue