From: Michal Privoznik Date: Wed, 25 Feb 2015 16:46:45 +0000 (+0100) Subject: testNetworkUpdate: Unlock network at the end X-Git-Tag: v1.2.14-rc1~286 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77ea6f7b0ba082f83e2bddac519fc30fa3a3d03c;p=thirdparty%2Flibvirt.git testNetworkUpdate: Unlock network at the end Silly this bug went unnoticed so long. At the beginning we try to find the passed network in the list of network objects. If found, it's locked and real work takes place. Then, in the end, the network object is never unlocked. Signed-off-by: Michal Privoznik --- diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 718e84aabd..2f55b5b2f0 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -3835,6 +3835,8 @@ testNetworkUpdate(virNetworkPtr net, ret = 0; cleanup: + if (network) + virNetworkObjUnlock(network); testDriverUnlock(privconn); return ret; }