mirror of
https://github.com/apple/foundationdb.git
synced 2025-06-01 10:45:56 +08:00
Setting the finalizer prevents user from calling Close(), as it would randomly result in SIGSEGV or some other silent memory corruption. No finalizer is set for the database and user is expected to call Close() to avoid memory leaks.