670671672673674675676677678679680
if (locks.size() > 0) { synchronized (database) { // don't use the enhance for loop to safe memory for (int i = 0; i < locks.size(); i++) { Table t = locks.get(i); t.unlock(this); } locks.clear(); } } savepoints = null;