[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] [PATCH] esx: Fix a potential crash
- From: Daniel Veillard <veillard redhat com>
- To: Osier Yang <jyang redhat com>
- Cc: libvir-list redhat com
- Subject: Re: [libvirt] [PATCH] esx: Fix a potential crash
- Date: Tue, 12 Jul 2011 16:58:04 +0800
On Tue, Jul 12, 2011 at 05:05:16PM +0800, Osier Yang wrote:
> Initialize ptr data.datastorePathWithoutFileName as NULL, otherwise
> it might cause crash when trying to free it in cleanup.
>
> ---
> src/esx/esx_driver.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c
> index ddb8c23..ae614a6 100644
> --- a/src/esx/esx_driver.c
> +++ b/src/esx/esx_driver.c
> @@ -2698,6 +2698,7 @@ esxDomainGetXMLDesc(virDomainPtr domain, unsigned int flags)
> char *vmx = NULL;
> virVMXContext ctx;
> esxVMX_Data data;
> + data.datastorePathWithoutFileName = NULL;
> virDomainDefPtr def = NULL;
> char *xml = NULL;
ACK,
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel veillard com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]