commit | 6ac5f3881fd9880f55e30c5f5bd9984d9d47fd62 | [log] [tgz] |
---|---|---|
author | Kevin Wolf <kwolf@redhat.com> | Tue Nov 22 16:57:34 2011 +0100 |
committer | Kevin Wolf <kwolf@redhat.com> | Wed Nov 23 17:04:05 2011 +0100 |
tree | 26d383f941d5f29b66b2966c04136d73d665e2cc | |
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>
diff --git a/block/vdi.c b/block/vdi.c index 7dda522..02da6b4 100644 --- a/block/vdi.c +++ b/block/vdi.c
@@ -949,6 +949,9 @@ 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); }