util: Do not leak @handles in stop netlink event service

Commit e3ba4025 introduced srv->handles and VIR_RESIZE_N to allocate
@handles as necessary, but did not free the handles during when calling
virNetlinkEventServiceStop.
This commit is contained in:
Wang King 2017-05-18 12:06:42 +08:00 committed by John Ferlan
parent c886b5d153
commit 506acac87f

View File

@ -758,6 +758,7 @@ virNetlinkEventServiceStop(unsigned int protocol)
} }
server[protocol] = NULL; server[protocol] = NULL;
VIR_FREE(srv->handles);
virNetlinkEventServerUnlock(srv); virNetlinkEventServerUnlock(srv);
virMutexDestroy(&srv->lock); virMutexDestroy(&srv->lock);