提交 c5337e8e 编写于 作者: S Stefan Berger

nwfilter: Fix memory leak on daemon init and shutdown

This patch fixes a memory leak on daemon init and shutdown. The module
was initialized twice and not shut down.
上级 55d444cc
......@@ -176,6 +176,8 @@ nwfilterDriverShutdown(void) {
if (!driverState)
return -1;
virNWFilterLearnShutdown();
nwfilterDriverLock(driverState);
/* free inactive pools */
......@@ -421,6 +423,5 @@ static virStateDriver stateDriver = {
int nwfilterRegister(void) {
virRegisterNWFilterDriver(&nwfilterDriver);
virRegisterStateDriver(&stateDriver);
virNWFilterLearnInit();
return 0;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册