Skip to content

Commit 96dd310

Browse files
committed
Fix Bug #81588 TokyoCabinet driver leaks memory
1 parent 05b212b commit 96dd310

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ PHP NEWS
1212
. Fixed bug #81500 (Interval serialization regression since 7.3.14 / 7.4.2).
1313
(cmb)
1414

15+
- DBA:
16+
. Fixed bug #81588 (TokyoCabinet driver leaks memory). (girgias)
17+
1518
- MBString:
1619
. Fixed bug #76167 (mbstring may use pointer from some previous request).
1720
(cmb, cataphract)

ext/dba/dba_tcadb.c

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

8383
tcadbclose(dba->tcadb);
84+
tcadbdel(dba->tcadb);
8485
pefree(dba, info->flags & DBA_PERSISTENT);
8586
}
8687

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)