mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
esx: Fix a potential crash
Initialize ptr data.datastorePathWithoutFileName as NULL, otherwise it might cause crash when trying to free it in cleanup.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user