From 6ddb83efcc33fe36c73345effb7c641fb9bc05a0 Mon Sep 17 00:00:00 2001 From: Osier Yang Date: Tue, 12 Jul 2011 17:23:35 +0800 Subject: [PATCH] esx: Fix a potential crash 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 file changed, 1 insertion(+) 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; -- 2.39.5