mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
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.
This commit is contained in:
parent
55d444cc10
commit
c5337e8e43
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user