提交 797b1ffc 编写于 作者: M Michal Privoznik

qemuBuildChrDeviceCommandLine: Don't leak devstr

It's caller's responsibility to free return value of
qemuBuildChrDeviceStr().
上级 0f9e67bf
......@@ -6608,6 +6608,7 @@ qemuBuildChrDeviceCommandLine(virCommandPtr cmd,
return -1;
virCommandAddArgList(cmd, "-device", devstr, NULL);
VIR_FREE(devstr);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册