Skip to contentSkip to conversation

block/qcow2.c : call qcow2_free_snapshots in the function of qcow2_close

PATCH Applied Li Zhi Hui 3 participants 3 messages Dec 7, 2011 Block layer

lore
Share & tools
lore

Li Zhi Hui

author
#0 lore raw

PATCH 1/1 block/qcow2.c : call qcow2_free_snapshots in the function of qcow2_close

---
 block/qcow2.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
block/qcow2.c +1 -0
index 37cd442..aa32e8d 100644
@@ -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)
Signature · 1 line
1.7.4.1