From 77ea6f7b0ba082f83e2bddac519fc30fa3a3d03c Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Wed, 25 Feb 2015 17:46:45 +0100 Subject: [PATCH] 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 --- src/test/test_driver.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.5