[sheepdog] [PATCH] dog: fix memory leak in vdi_snapshot()
Hitoshi Mitake
mitake.hitoshi at lab.ntt.co.jp
Tue May 12 07:04:45 CEST 2015
At Mon, 11 May 2015 22:17:15 +0800,
Yu Yang wrote:
>
> From: Yu Yang <yuyang at cmss.chinamobile.com>
>
> free the allocated memory in the end of the function.
>
> Signed-off-by: Yu Yang <yuyang at cmss.chinamobile.com>
> ---
> dog/vdi.c | 1 +
> 1 file changed, 1 insertion(+)
Applied, thanks.
Hitoshi
>
> diff --git a/dog/vdi.c b/dog/vdi.c
> index 3766273..3b4673f 100644
> --- a/dog/vdi.c
> +++ b/dog/vdi.c
> @@ -779,6 +779,7 @@ out:
> sd_err("allowing inode update failed");
> }
>
> + free(vs);
> return ret;
> }
>
> --
> 1.7.9.5
>
>
>
>
> --
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> https://lists.wpkg.org/mailman/listinfo/sheepdog
More information about the sheepdog
mailing list