Skip to content

Commit 9f77373

Browse files
committed
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4: Fix Bug #81588 TokyoCabinet driver leaks memory
2 parents 546e558 + 96dd310 commit 9f77373

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ext/dba/dba_tcadb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ DBA_CLOSE_FUNC(tcadb)
7979
TCADB_DATA;
8080

8181
tcadbclose(dba->tcadb);
82+
tcadbdel(dba->tcadb);
8283
pefree(dba, info->flags & DBA_PERSISTENT);
8384
}
8485

ext/dba/tests/dba_tcadb.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ DBA TCADB handler test
77
?>
88
--FILE--
99
<?php
10+
$handler = 'tcadb';
1011
$lock_flag = 'l';
1112
$db_filename = $db_file = __DIR__ .'/test0.tch';
1213
@unlink($db_filename);

0 commit comments

Comments
 (0)