From: Gao feng Date: Mon, 11 Jun 2012 05:52:37 +0000 (+0800) Subject: LXC: fix memory leak in lxcContainerMountFSBlockAuto X-Git-Tag: v0.9.13-rc1~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e49d792f29caaea6a7bf4767825f341eefd2e145;p=thirdparty%2Flibvirt.git LXC: fix memory leak in lxcContainerMountFSBlockAuto we forgot to free fslist,just add VIR_FREE(fslist). Signed-off-by: Gao feng --- diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c index 40ab93630a..a1714c0971 100644 --- a/src/lxc/lxc_container.c +++ b/src/lxc/lxc_container.c @@ -895,6 +895,7 @@ retry: cleanup: VIR_FREE(line); + VIR_FREE(fslist); VIR_FORCE_FCLOSE(fp); return ret; }