Skip to content

Commit c7a0439

Browse files
committed
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Fix memory leak in LMDB driver
2 parents 3edf93d + 5b83b3a commit c7a0439

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/dba/dba_lmdb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ DBA_OPEN_FUNC(lmdb)
7272

7373
rc = mdb_env_open(env, info->path, flags, mode);
7474
if (rc) {
75+
mdb_env_close(env);
7576
*error = mdb_strerror(rc);
7677
return FAILURE;
7778
}

0 commit comments

Comments
 (0)