提交 77ea6f7b 编写于 作者: M Michal Privoznik

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: NMichal Privoznik <mprivozn@redhat.com>
上级 7b8c12d8
......@@ -3835,6 +3835,8 @@ testNetworkUpdate(virNetworkPtr net,
ret = 0;
cleanup:
if (network)
virNetworkObjUnlock(network);
testDriverUnlock(privconn);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册