mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
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:
parent
3fc48d0983
commit
ab0997e0af
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue