提交 e675e874 编写于 作者: P Pavel Hrdina 提交者: Cole Robinson

rpc: fix resource leak

Commit 252610f7 switched to use hash to store servers.
Function virHashGetItems returns allocated array which needs
to be freed also for successful path, not only if there is
an error.
Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
(cherry picked from commit ab0a461b)
上级 c714afcc
......@@ -401,6 +401,7 @@ virNetDaemonPreExecRestart(virNetDaemonPtr dmn)
}
}
VIR_FREE(srvArray);
virObjectUnlock(dmn);
return object;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册