Skip to content

Commit

Permalink
Fix Bug #81588 TokyoCabinet driver leaks memory
Browse files Browse the repository at this point in the history
  • Loading branch information
Girgias committed Nov 3, 2021
1 parent 05b212b commit 96dd310
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ PHP NEWS
. Fixed bug #81500 (Interval serialization regression since 7.3.14 / 7.4.2).
(cmb)

- DBA:
. Fixed bug #81588 (TokyoCabinet driver leaks memory). (girgias)

- MBString:
. Fixed bug #76167 (mbstring may use pointer from some previous request).
(cmb, cataphract)
Expand Down
1 change: 1 addition & 0 deletions ext/dba/dba_tcadb.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ DBA_CLOSE_FUNC(tcadb)
TCADB_DATA;

tcadbclose(dba->tcadb);
tcadbdel(dba->tcadb);
pefree(dba, info->flags & DBA_PERSISTENT);
}

Expand Down
1 change: 1 addition & 0 deletions ext/dba/tests/dba_tcadb.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ DBA TCADB handler test
?>
--FILE--
<?php
$handler = 'tcadb';
$lock_flag = 'l';
$db_filename = $db_file = __DIR__ .'/test0.tch';
@unlink($db_filename);
Expand Down

0 comments on commit 96dd310

Please sign in to comment.