示例#1
0
文件: leveldb.go 项目: reusee/obox
func (self *Leveldb) Close() error {
	C.leveldb_close(self.cdb)
	C.leveldb_readoptions_destroy(self.read_options)
	C.leveldb_writeoptions_destroy(self.write_options)
	C.leveldb_cache_destroy(self.cache)
	return nil
}
示例#2
0
// Close deallocates the underlying memory of the Cache object.
func (c *Cache) Close() {
	C.leveldb_cache_destroy(c.Cache)
}