提交 e1d0471e 编写于 作者: J John Ferlan

commandtest: Resolve Coverity RESOURCE_LEAK

Since '62f263a7' - Coverity complains if the !pidfile path is taken,
then newfd1 would be leaked.
上级 b9ff7393
......@@ -1081,6 +1081,7 @@ static int test24(const void *unused ATTRIBUTE_UNUSED)
unlink(pidfile);
VIR_FREE(pidfile);
virCommandFree(cmd);
VIR_FORCE_CLOSE(newfd1);
/* coverity[double_close] */
VIR_FORCE_CLOSE(newfd2);
VIR_FORCE_CLOSE(newfd3);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册