[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] block/qcow2.c : call qcow2_free_snapshots in the fu
From: |
Li Zhi Hui |
Subject: |
[Qemu-devel] [PATCH] block/qcow2.c : call qcow2_free_snapshots in the function of qcow2_close |
Date: |
Wed, 7 Dec 2011 17:25:48 +0800 |
Signed-off-by: Li Zhi Hui <address@hidden>
---
block/qcow2.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/block/qcow2.c b/block/qcow2.c
index 37cd442..aa32e8d 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -635,6 +635,7 @@ static void qcow2_close(BlockDriverState *bs)
g_free(s->cluster_cache);
qemu_vfree(s->cluster_data);
qcow2_refcount_close(bs);
+ qcow2_free_snapshots(bs);
}
static void qcow2_invalidate_cache(BlockDriverState *bs)
--
1.7.4.1
- [Qemu-devel] [PATCH] block/qcow2.c : call qcow2_free_snapshots in the function of qcow2_close,
Li Zhi Hui <=