log_path: free on lxc_conf free (for master)

This is for the master branch, to fix a memleak on conf free.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Serge Hallyn 2014-08-08 18:27:24 +00:00 committed by Stéphane Graber
parent 7e40254ab7
commit b91f00d347

View File

@ -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)