[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] [PATCH] Fix activeDomainList handling
- From: Jim Meyering <jim meyering net>
- To: john levon sun com
- Cc: libvir-list redhat com
- Subject: Re: [libvirt] [PATCH] Fix activeDomainList handling
- Date: Wed, 14 Jan 2009 20:19:58 +0100
john levon sun com wrote:
> Fix activeDomainList handling
In your eventual ChangeLog entry, please
mention xsWatchList, too.
> It must be NULLed out after free()ing.
>
> Signed-off-by: John Levon <john levon sun com>
>
> diff --git a/src/xs_internal.c b/src/xs_internal.c
> --- a/src/xs_internal.c
> +++ b/src/xs_internal.c
> @@ -388,8 +388,10 @@ xenStoreClose(virConnectPtr conn)
> }
>
> xenStoreWatchListFree(priv->xsWatchList);
> + priv->xsWatchList = NULL;
> #ifndef PROXY
> xenUnifiedDomainInfoListFree(activeDomainList);
> + activeDomainList = NULL;
> #endif
> if (priv->xshandle == NULL)
> return(-1);
Definitely good fixes.
Otherwise we'd end up dereferencing freed pointers.
However these conflict with Dan's recent changes,
so you should wait to hear from him.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]