mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 09:53:10 +00:00
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:
parent
c886b5d153
commit
506acac87f
@ -758,6 +758,7 @@ virNetlinkEventServiceStop(unsigned int protocol)
|
||||
}
|
||||
|
||||
server[protocol] = NULL;
|
||||
VIR_FREE(srv->handles);
|
||||
virNetlinkEventServerUnlock(srv);
|
||||
|
||||
virMutexDestroy(&srv->lock);
|
||||
|
Loading…
Reference in New Issue
Block a user