aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <freddy77@gmail.com>2011-08-23 15:21:20 +0200
committerKevin Wolf <kwolf@redhat.com>2011-08-23 17:41:15 +0200
commitab0997e0afdcb272fd04784a280b2df46b0c759f (patch)
tree9085426efa339aa430fac6e9750134d1f8836340
parent3fc48d0983a989d2227668bbcaae1681ea37fddd (diff)
qcow2: remove memory leak
Signed-off-by: Frediano Ziglio <freddy77@gmail.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
-rw-r--r--block/qcow2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/block/qcow2.c b/block/qcow2.c
index 37dab656ab..b725d68b1d 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -496,6 +496,7 @@ fail:
qemu_co_mutex_unlock(&s->lock);
qemu_iovec_destroy(&hd_qiov);
+ g_free(cluster_data);
return ret;
}
@@ -608,6 +609,7 @@ fail:
qemu_co_mutex_unlock(&s->lock);
qemu_iovec_destroy(&hd_qiov);
+ g_free(cluster_data);
return ret;
}