Re: [PATCH v2 2/2] util: do not leak handles in stop netlink event service

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 05/18/2017 12:06 AM, Wang King wrote:
> handles stored in virNetlinkEventSrvPrivatePtr should be freed when
> stop netlink event service.

Altered the commit message to describe which commit introduced and just
fit that into the text...

> ---
>  src/util/virnetlink.c | 1 +
>  1 file changed, 1 insertion(+)
> 

Reviewed-by: John Ferlan <jferlan@xxxxxxxxxx>

Will push soon - tks,

John

> 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);
> 

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux