]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vz: BUG: fix connecting hang in case of init failure
authorMaxim Nestratov <mnestratov@virtuozzo.com>
Thu, 24 Dec 2015 12:58:59 +0000 (15:58 +0300)
committerDmitry Guryanov <dguryanov@localhost.localdomain>
Thu, 24 Dec 2015 15:31:05 +0000 (18:31 +0300)
commit635daa2556b003c3a1d19f1a850511fbc0ccff46
tree479b4adf1b3af90fee4192d1f5d0f06cbea444b0
parent53a15aed39500d1e9fa297043109bbbe65c8dcd0
vz: BUG: fix connecting hang in case of init failure

In case of prlsdkLoadDomains fails, vzOpenDefault should
clear connection privateData pointer every time its
memory is actually freed.
Also it is not necessary to call vzConnectClose if a call
to vzOpenDefault fails, because they both make cleanup of
connection privateData.

Signed-off-by: Maxim Nestratov <mnestratov@virtuozzo.com>
src/vz/vz_driver.c