From: Osier Yang Date: Tue, 12 Jul 2011 09:23:35 +0000 (+0800) Subject: esx: Fix a potential crash X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6ddb83efcc33fe36c73345effb7c641fb9bc05a0;p=libvirt.git esx: Fix a potential crash Initialize ptr data.datastorePathWithoutFileName as NULL, otherwise it might cause crash when trying to free it in cleanup. --- diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c index ddb8c23bae..ae614a6b24 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;