]> git.ipfire.org Git - thirdparty/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)
committerCole Robinson <crobinso@redhat.com>
Wed, 10 May 2017 19:42:45 +0000 (15:42 -0400)
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>
(cherry picked from commit c23b7b81db58c61b0adc98095dca7bfbad74fa79)

src/qemu/qemu_process.c

index 03ccf4d8c2657cd79e1e8fdd84dc16f3b7f8222b..31f028e7afe7336896aa218045c19d54512bdf32 100644 (file)
@@ -3634,7 +3634,6 @@ qemuProcessSPICEAllocatePorts(virQEMUDriverPtr driver,
     ret = 0;
 
  cleanup:
-    virPortAllocatorRelease(driver->remotePorts, port);
     virObjectUnref(cfg);
     return ret;
 }