提交 4313e1b9 编写于 作者: C Chris Lalancette

Fix a memory leak in the qemudBuildCommandLine.

ADD_ARG_LIT should only be used for literal arguments,
since it duplicates the memory.  Since virBufferContentAndReset
is already allocating memory, we should only use ADD_ARG.
Signed-off-by: NChris Lalancette <clalance@redhat.com>
上级 5cff36e3
......@@ -4110,7 +4110,7 @@ int qemudBuildCommandLine(virConnectPtr conn,
goto error;
}
ADD_ARG_LIT(virBufferContentAndReset(&boot_buf));
ADD_ARG(virBufferContentAndReset(&boot_buf));
}
if (def->os.kernel) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册