diff options
| author | Zhang Min | 2014-01-23 08:59:16 +0100 |
|---|---|---|
| committer | Kevin Wolf | 2014-01-24 14:33:00 +0100 |
| commit | 6df3bf8eb3ed428015c85cfbd554ac9b32164f40 (patch) | |
| tree | 653dbd3dd966b8dbb3daa771da6d89c6d9b13c82 /qapi-schema.json | |
| parent | sheepdog: fix 'qemu-img map' (diff) | |
| download | qemu-6df3bf8eb3ed428015c85cfbd554ac9b32164f40.tar.gz qemu-6df3bf8eb3ed428015c85cfbd554ac9b32164f40.tar.xz qemu-6df3bf8eb3ed428015c85cfbd554ac9b32164f40.zip | |
drive mirror:fix memory leak
In the function mirror_iteration() -> qemu_iovec_init(),
it allocates memory for op->qiov.iov, when the write request calls back,
but in the function mirror_iteration_done(), it only frees the op,
not free the op->qiov.iov, so this causes memory leak.
It should use qemu_iovec_destroy() to free op->qiov.
Signed-off-by: Zhang Min <rudy.zhangmin@huawei.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qapi-schema.json')
0 files changed, 0 insertions, 0 deletions
