You need to sign in or sign up before continuing.
提交 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) ...@@ -638,7 +638,7 @@ int virProcessGetPids(pid_t pid, size_t *npids, pid_t **pids)
ret = 0; ret = 0;
cleanup: cleanup:
if (!dir) if (dir)
closedir(dir); closedir(dir);
VIR_FREE(taskPath); VIR_FREE(taskPath);
if (ret < 0) if (ret < 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册