From 2a3466fafb60c56a770152ea5b4c535f316fd8eb Mon Sep 17 00:00:00 2001 From: Gao feng Date: Mon, 20 May 2013 18:12:18 +0800 Subject: [PATCH] LXC: fix memory leak in virLXCControllerSetupDevPTS We forgot to free the mount_options. Signed-off-by: Gao feng --- src/lxc/lxc_controller.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lxc/lxc_controller.c b/src/lxc/lxc_controller.c index 2f01958f81..e311f38938 100644 --- a/src/lxc/lxc_controller.c +++ b/src/lxc/lxc_controller.c @@ -1353,6 +1353,7 @@ virLXCControllerSetupDevPTS(virLXCControllerPtr ctrl) cleanup: VIR_FREE(opts); VIR_FREE(devpts); + VIR_FREE(mount_options); return ret; } -- GitLab