From 506acac87f0621762281b509071e7472c49a692b Mon Sep 17 00:00:00 2001 From: Wang King Date: Thu, 18 May 2017 12:06:42 +0800 Subject: [PATCH] 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. --- src/util/virnetlink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/virnetlink.c b/src/util/virnetlink.c index 32fe135259..d732fe8cf3 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);