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

util: Resolve resource leak

Need to free @groups in the parent on success similar to other
APIs (virFile*) which use virGetGroupList and virFork.

Reported by Coverity.
上级 b71d10cc
...@@ -606,6 +606,7 @@ virExec(virCommandPtr cmd) ...@@ -606,6 +606,7 @@ virExec(virCommandPtr cmd)
cmd->pid = pid; cmd->pid = pid;
VIR_FREE(groups);
VIR_FREE(binarystr); VIR_FREE(binarystr);
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册