qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 8/8] qcow2: remove memory leak


From: Frediano Ziglio
Subject: [Qemu-devel] [PATCH 8/8] qcow2: remove memory leak
Date: Thu, 28 Jul 2011 09:40:41 +0200

Signed-off-by: Frediano Ziglio <address@hidden>
---
 block/qcow2.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/block/qcow2.c b/block/qcow2.c
index 6073568..aed8da7 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -492,6 +492,7 @@ fail:
     qemu_co_mutex_unlock(&s->lock);
 
     qemu_iovec_destroy(&hd_qiov);
+    qemu_free(cluster_data);
 
     return ret;
 }
@@ -604,6 +605,7 @@ fail:
     qemu_co_mutex_unlock(&s->lock);
 
     qemu_iovec_destroy(&hd_qiov);
+    qemu_free(cluster_data);
 
     return ret;
 }
-- 
1.7.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]