diff options
author | Kevin Wolf <kwolf@redhat.com> | 2011-11-22 16:57:34 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-11-23 17:04:05 +0100 |
commit | 6ac5f3881fd9880f55e30c5f5bd9984d9d47fd62 (patch) | |
tree | 26d383f941d5f29b66b2966c04136d73d665e2cc /block | |
parent | 3397f0cb483b40785678d2328da584c8a35c358c (diff) |
vdi: Fix memory leak
The block map is allocated in vdi_open, but was never freed.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/vdi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/block/vdi.c b/block/vdi.c index 7dda5222eb..02da6b44d0 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); } |