qcow2: Fix memory leak in COW error path
commitbd60436936ecebf2c683eef9ea561f2b949700f3
authorKevin Wolf <kwolf@redhat.com>
Mon, 19 May 2014 15:56:01 +0000 (19 17:56 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 28 May 2014 12:28:46 +0000 (28 14:28 +0200)
treea211604b6ad5f4b6c33cd170e4be0fca91265660
parent4ba6fabfb447661ee44ee593b2c454c7ffd1183f
qcow2: Fix memory leak in COW error path

This triggers if bs->drv becomes NULL in a concurrent request. This is
currently only the case when corruption prevention kicks in (i.e. at
most once per image, and after that it produces I/O errors).

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qcow2-cluster.c