Commit fc7e8864 by Weng Meiling Committed by Serge Hallyn

add free conf->rcfile in lxc_conf_free

when releasing the conf, add free conf->rcfile which is from malloc Signed-off-by: 's avatarWeng Meiling <wengmeiling.weng@huawei.com> Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent b85ab798
...@@ -3115,6 +3115,8 @@ void lxc_conf_free(struct lxc_conf *conf) ...@@ -3115,6 +3115,8 @@ void lxc_conf_free(struct lxc_conf *conf)
free(conf->ttydir); free(conf->ttydir);
if (conf->fstab) if (conf->fstab)
free(conf->fstab); free(conf->fstab);
if (conf->rcfile)
free(conf->rcfile);
lxc_clear_config_network(conf); lxc_clear_config_network(conf);
#if HAVE_APPARMOR #if HAVE_APPARMOR
if (conf->aa_profile) if (conf->aa_profile)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment