From: Gao feng Date: Mon, 20 May 2013 10:12:18 +0000 (+0800) Subject: LXC: fix memory leak in virLXCControllerSetupDevPTS X-Git-Tag: v1.0.6-rc1~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a3466fafb60c56a770152ea5b4c535f316fd8eb;p=thirdparty%2Flibvirt.git LXC: fix memory leak in virLXCControllerSetupDevPTS We forgot to free the mount_options. Signed-off-by: Gao feng --- 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; }