2
0
mirror of git://github.com/lxc/lxc synced 2025-08-31 00:19:33 +00:00

add free conf->rcfile in lxc_conf_free

when releasing the conf, add free conf->rcfile which is from malloc

Signed-off-by: Weng Meiling <wengmeiling.weng@huawei.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
Weng Meiling
2013-05-03 11:02:40 +08:00
committed by Serge Hallyn
parent b85ab7989e
commit fc7e88640c

View File

@@ -3115,6 +3115,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)