qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2] drive mirror:fix memory leak


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH v2] drive mirror:fix memory leak
Date: Thu, 23 Jan 2014 11:51:46 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Am 23.01.2014 um 08:59 hat Zhang Min geschrieben:
> 
> 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 <address@hidden>

Thanks, applied to the block branch.

Kevin



reply via email to

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