From a25ac3ac7e9dd0f803fe24efaebaf25480ceb73c Mon Sep 17 00:00:00 2001 From: Gao feng Date: Mon, 11 Jun 2012 13:52:37 +0800 Subject: [PATCH] LXC: fix memory leak in lxcContainerMountFSBlockAuto we forgot to free fslist,just add VIR_FREE(fslist). Signed-off-by: Gao feng (cherry picked from commit e49d792f29caaea6a7bf4767825f341eefd2e145) --- src/lxc/lxc_container.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c index f488000f5c..070e071290 100644 --- a/src/lxc/lxc_container.c +++ b/src/lxc/lxc_container.c @@ -926,6 +926,7 @@ retry: cleanup: VIR_FREE(line); + VIR_FREE(fslist); VIR_FORCE_FCLOSE(fp); return ret; }