1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

bug #721: unlock objects if returned as invalid in get operations

This commit is contained in:
Ruben S. Montero 2011-07-28 11:56:49 +02:00
parent dcf4ce4a5e
commit 5f873771ec

View File

@ -261,6 +261,8 @@ PoolObjectSQL * PoolSQL::get(const string& name, int ouid, bool olock)
if ( objectsql->isValid() == false )
{
objectsql->unlock();
objectsql = 0;
}
}