[lxc-devel] [PATCH 1/2] add free conf->rcfile in lxc_conf_free
Serge Hallyn
serge.hallyn at ubuntu.com
Fri May 3 12:45:27 UTC 2013
Quoting Weng Meiling (wengmeiling.weng at huawei.com):
>
> when releasing the conf, add free conf->rcfile which is from malloc
>
> Signed-off-by: Weng Meiling <wengmeiling.weng at huawei.com>
Thanks.
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>
> ---
> src/lxc/conf.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/src/lxc/conf.c b/src/lxc/conf.c
> index 6b3f318..01b70f4 100644
> --- a/src/lxc/conf.c
> +++ b/src/lxc/conf.c
> @@ -3094,6 +3094,8 @@ void lxc_conf_free(struct lxc_conf *conf)
> free(conf->ttydir);
> if (conf->fstab)
> free(conf->fstab);
> + if (conf->rcfile)
> + free(conf->rcfile);
> lxc_clear_config_network(conf);
> #if HAVE_APPARMOR
> if (conf->aa_profile)
> -- 1.7.1
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite
> It's a free troubleshooting tool designed for production
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap2
> _______________________________________________
> Lxc-devel mailing list
> Lxc-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-devel
More information about the lxc-devel
mailing list