replace leveldb_free by free for compatibility