Don't release spice port twice when no TLS port is available

Introduced by 7b4a630.
This commit is contained in:
Ján Tomko 2013-11-13 17:53:11 +01:00
parent e68432e45f
commit 28ea39a004

View File

@ -3431,7 +3431,6 @@ qemuProcessSPICEAllocatePorts(virQEMUDriverPtr driver,
if (tlsPort == 0) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("Unable to find an unused port for SPICE TLS"));
virPortAllocatorRelease(driver->remotePorts, port);
goto error;
}
graphics->data.spice.tlsPort = tlsPort;