提交 461fb555 编写于 作者: J John Ferlan

qemu_command: Resolve Coverity RESOURCE_LEAK

In qemuParseISCSIString() if an error was returned, then the call
to qemuParseDriveURIString() where the uri is free'd wouldn't be run
上级 be7b82a2
...@@ -2795,6 +2795,7 @@ qemuParseISCSIString(virDomainDiskDefPtr def) ...@@ -2795,6 +2795,7 @@ qemuParseISCSIString(virDomainDiskDefPtr def)
virReportError(VIR_ERR_INTERNAL_ERROR, virReportError(VIR_ERR_INTERNAL_ERROR,
_("invalid name '%s' for iSCSI disk"), _("invalid name '%s' for iSCSI disk"),
def->src->path); def->src->path);
virURIFree(uri);
return -1; return -1;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册