qcow2: remove memory leak

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
Frediano Ziglio 2011-08-23 15:21:20 +02:00 committed by Kevin Wolf
parent 3fc48d0983
commit ab0997e0af

View File

@ -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;
}