Fix cluster freeing in qcow2
authorGleb Natapov <gleb@redhat.com>
Thu, 7 May 2009 08:31:44 +0000 (11:31 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 8 May 2009 20:24:09 +0000 (15:24 -0500)
commit8620cc80825cf6fc00d1f62977035c662379b16b
tree9e4c666706c67da435842a5b6c8c5d049f9d6351
parent57704ca98c376d0e0b6707de0d4fc1d9e9bbad71
Fix cluster freeing in qcow2

Need to drop QCOW_OFLAG_COPIED from a cluster pointer before freeing it.

Add an explanation how thing meant to work.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block-qcow2.c