提交 0ea43d17 编写于 作者: J John Ferlan

rpc: Need to virCommandFree on error path

上级 ce6de782
......@@ -704,6 +704,7 @@ int virNetSocketNewConnectSSH(const char *nodename,
virBufferEscapeShell(&buf, netcat);
if (virBufferError(&buf)) {
virCommandFree(cmd);
virBufferFreeAndReset(&buf);
virReportOOMError();
return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册