handles stored in virNetlinkEventSrvPrivatePtr should be freed when
stop netlink event service.
---
src/util/virnetlink.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/util/virnetlink.c b/src/util/virnetlink.c
index fad1e8e..7988312 100644
--- a/src/util/virnetlink.c
+++ b/src/util/virnetlink.c
@@ -758,6 +758,7 @@ virNetlinkEventServiceStop(unsigned int protocol)
}
server[protocol] = NULL;
+ VIR_FREE(srv->handles);
virNetlinkEventServerUnlock(srv);
virMutexDestroy(&srv->lock);
--
2.8.3