[lxc-devel] [PATCH 1/2] add free conf->rcfile in lxc_conf_free

2013-05-02 Thread Weng Meiling
when releasing the conf, add free conf->rcfile which is from malloc Signed-off-by: Weng Meiling --- 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 @@

[lxc-devel] [PATCH 2/2] lxc_start: free the conf if starting the container fails

2013-05-02 Thread Weng Meiling
When running lxc-start command with valgrind, it reports a memory leak error. When lxc-start command fails, the conf which is from malloc has not been released. This patch fix the problem. Signed-off-by: Weng Meiling --- src/lxc/lxc_start.c | 21 +++-- 1 files changed, 11 ins

Re: [lxc-devel] [PATCH] allow lxc-init to log when rootfs not given

2013-05-02 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > On Mon, 29 Apr 2013 14:44:47 -0500 > Serge Hallyn wrote: > > > Quoting Dwight Engen (dwight.en...@oracle.com): > > > So I did this, only to realize that lxc-init is passing "none" for > > > the file anyway, so it currently doesn't intend to log. T

Re: [lxc-devel] patches to implement -P for the lxc-* scripts

2013-05-02 Thread Serge Hallyn
Quoting Harald Dunkel (harald.dun...@aixigo.de): > Hi folks, > > I would like to contribute patches for > > lxc-shutdown > lxc-clone > lxc-create > lxc-netstat > > to support an alternate container directory using "-P|--lxcpath", > similar to the binary executables. Than

[lxc-devel] patches to implement -P for the lxc-* scripts

2013-05-02 Thread Harald Dunkel
Hi folks, I would like to contribute patches for lxc-shutdown lxc-clone lxc-create lxc-netstat to support an alternate container directory using "-P|--lxcpath", similar to the binary executables. Is somebody interested for review first? It would be nice to get a