提交 748b6d8e 编写于 作者: D Dmitry Guryanov 提交者: Daniel Veillard

parallels: fix parallelsDoCmdRun in case of command failure

Don't try to dereferece NULL pointer.
上级 babe7dad
......@@ -55,7 +55,7 @@ parallelsDoCmdRun(char **outbuf, const char *binary, va_list list)
cleanup:
VIR_FREE(scmd);
virCommandFree(cmd);
if (ret)
if (ret && outbuf)
VIR_FREE(*outbuf);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册