We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11c424c commit cd64077Copy full SHA for cd64077
ext/dba/dba_lmdb.c
@@ -62,6 +62,8 @@ DBA_OPEN_FUNC(lmdb)
62
63
rc = mdb_env_open(env, info->path, flags, mode);
64
if (rc) {
65
+ /* If this function [mdb_env_open()] fails, mdb_env_close() must be called to discard the MDB_env handle.
66
+ * http://www.lmdb.tech/doc/group__mdb.html#ga32a193c6bf4d7d5c5d579e71f22e9340 */
67
mdb_env_close(env);
68
*error = mdb_strerror(rc);
69
return FAILURE;
0 commit comments