From db3b32c4e120eaa3bdc08139c2b78d46ba5915bf Mon Sep 17 00:00:00 2001 From: "ajia@redhat.com" Date: Mon, 19 Sep 2011 00:36:11 +0800 Subject: [PATCH] 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 --- src/qemu/qemu_command.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index e8b1157c90..45d55fc508 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -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;