qemu: don't mask real error with oom report

* src/qemu/qemu_command.c (qemuBuildCommandLine): Don't report oom
after qemuBuildControllerDevStr, which reported its own errors.
This commit is contained in:
Eric Blake 2011-02-15 09:31:39 -07:00
parent abaa65605f
commit 56152be578

View File

@ -3102,7 +3102,7 @@ qemuBuildCommandLine(virConnectPtr conn,
char *devstr;
if (!(devstr = qemuBuildControllerDevStr(def->controllers[i], qemuCmdFlags)))
goto no_memory;
goto error;
virCommandAddArg(cmd, devstr);
VIR_FREE(devstr);