提交 bba793dc 编写于 作者: G Gao feng 提交者: Cole Robinson

LXC: fix memory leak in lxcContainerMountFSBlockHelper

we alloc the memory for format in lxcContainerMountDetectFilesystem
but without free it in lxcContainerMountFSBlockHelper.

this patch just call VIR_FREE to free it.
Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
(cherry picked from commit 73e2d646)
上级 e8603e5f
......@@ -971,6 +971,7 @@ static int lxcContainerMountFSBlockHelper(virDomainFSDefPtr fs,
}
cleanup:
VIR_FREE(format);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册