]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu_process: spice: don't release used port
authorPavel Hrdina <phrdina@redhat.com>
Fri, 24 Feb 2017 01:28:40 +0000 (02:28 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Fri, 24 Feb 2017 08:58:10 +0000 (09:58 +0100)
The port is stored in graphics configuration and it will
also get released in qemuProcessStop in case of error.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1397440

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_process.c

index df1fa0371d328b3507722908a32a627587862872..760507d9575909b5ea47d116dc3e31cb99fb85f9 100644 (file)
@@ -3693,7 +3693,6 @@ qemuProcessSPICEAllocatePorts(virQEMUDriverPtr driver,
     ret = 0;
 
  cleanup:
-    virPortAllocatorRelease(driver->remotePorts, port);
     virObjectUnref(cfg);
     return ret;
 }