Dispose of Cluster objects in fdb.open()
This commit is contained in:
parent
f657be8136
commit
3ded271153
|
@ -277,7 +277,10 @@ public class FDB {
|
|||
f = new FutureCluster(Cluster_create(clusterFilePath), e);
|
||||
}
|
||||
Cluster c = f.join();
|
||||
return c.openDatabase(e);
|
||||
Database db = c.openDatabase(e);
|
||||
c.dispose();
|
||||
|
||||
return db;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -277,7 +277,10 @@ public class FDB {
|
|||
f = new FutureCluster(Cluster_create(clusterFilePath), e);
|
||||
}
|
||||
Cluster c = f.get();
|
||||
return c.openDatabase(e);
|
||||
Database db = c.openDatabase(e);
|
||||
c.dispose();
|
||||
|
||||
return db;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue