qcow2: Free allocated L2 cluster on error
commite3b21ef9e016e6d91fd71e44af5e23fb359e18f9
authorMax Reitz <mreitz@redhat.com>
Wed, 25 Sep 2013 14:37:19 +0000 (25 16:37 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 7 Oct 2013 11:23:19 +0000 (7 13:23 +0200)
tree755ceabcf5a4b5e2c75cbf708099dd35d73e37e0
parentfda74f826baec78d685e5a87fd8a95bfb7bb2243
qcow2: Free allocated L2 cluster on error

If an error occurs in l2_allocate, the allocated (but unused) L2 cluster
should be freed.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qcow2-cluster.c