mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 15:52:55 +00:00
qemu: avoid memory leak
Leak introduced in commit 036ad50, affects only error case. * src/qemu/qemu_command.c: fix memory leak. Signed-off-by: Alex Jia <ajia@redhat.com>
This commit is contained in:
parent
2fdd441a4a
commit
db3b32c4e1
@ -6540,7 +6540,6 @@ virDomainDefPtr qemuParseCommandLine(virCapsPtr caps,
|
||||
host = disk->src;
|
||||
port = strchr(host, ':');
|
||||
if (!port) {
|
||||
def = NULL;
|
||||
qemuReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("cannot parse nbd filename '%s'"), disk->src);
|
||||
goto error;
|
||||
|
Loading…
x
Reference in New Issue
Block a user