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

util: Fix Coverity RESOURCE_LEAK

Commit id 'e44b0269' in advertently checked !dir before calling closedir
上级 4ec52c36
......@@ -638,7 +638,7 @@ int virProcessGetPids(pid_t pid, size_t *npids, pid_t **pids)
ret = 0;
cleanup:
if (!dir)
if (dir)
closedir(dir);
VIR_FREE(taskPath);
if (ret < 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册