[libvirt] [PATCH] LXC: fix memory leak in lxcContainerMountFSBlockAuto
Osier Yang
jyang at redhat.com
Mon Jun 11 06:19:15 UTC 2012
On 2012年06月11日 13:52, Gao feng wrote:
> we forgot to free fslist,just add VIR_FREE(fslist).
>
> Signed-off-by: Gao feng<gaofeng at cn.fujitsu.com>
> ---
> src/lxc/lxc_container.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c
> index cd15ca4..297bd6d 100644
> --- a/src/lxc/lxc_container.c
> +++ b/src/lxc/lxc_container.c
> @@ -969,6 +969,7 @@ retry:
>
> cleanup:
> VIR_FREE(line);
> + VIR_FREE(fslist);
> VIR_FORCE_FCLOSE(fp);
> return ret;
> }
ACK and pushed.
Osier
More information about the libvir-list
mailing list