[lxc-devel] [PATCH 1/1] log_path: free on lxc_conf free (for master)
Serge Hallyn
serge.hallyn at ubuntu.com
Fri Aug 8 18:27:24 UTC 2014
This is for the master branch, to fix a memleak on conf free.
Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
---
src/lxc/conf.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/lxc/conf.c b/src/lxc/conf.c
index 237bad4..531a588 100644
--- a/src/lxc/conf.c
+++ b/src/lxc/conf.c
@@ -4482,6 +4482,8 @@ void lxc_conf_free(struct lxc_conf *conf)
{
if (!conf)
return;
+ if (conf->console.log_path)
+ free(conf->console.log_path);
if (conf->console.path)
free(conf->console.path);
if (conf->rootfs.mount)
--
2.1.0.rc1
More information about the lxc-devel
mailing list