[libvirt] [PATCH 05/19] qemu_command: Resolve Coverity RESOURCE_LEAK
John Ferlan
jferlan at redhat.com
Wed Aug 27 20:54:36 UTC 2014
In qemuParseISCSIString() if an error was returned, then the call
to qemuParseDriveURIString() where the uri is free'd wouldn't be run
Signed-off-by: John Ferlan <jferlan at redhat.com>
---
src/qemu/qemu_command.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index 8fb81a4..528f947 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -2795,6 +2795,7 @@ qemuParseISCSIString(virDomainDiskDefPtr def)
virReportError(VIR_ERR_INTERNAL_ERROR,
_("invalid name '%s' for iSCSI disk"),
def->src->path);
+ virURIFree(uri);
return -1;
}
}
--
1.9.3
More information about the libvir-list
mailing list