mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-14 09:53:28 +00:00
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:
parent
7e40254ab7
commit
b91f00d347
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user