Merge branch 'PHP-8.1'

* PHP-8.1:
  Fix Bug #81588 TokyoCabinet driver leaks memory
This commit is contained in:
George Peter Banyard 2021-11-03 15:02:12 +00:00
commit 8ca7220bc9
No known key found for this signature in database
GPG key ID: D49A095D7329F6DC
2 changed files with 2 additions and 0 deletions

View file

@ -77,6 +77,7 @@ DBA_CLOSE_FUNC(tcadb)
dba_tcadb_data *dba = info->dbf;
tcadbclose(dba->tcadb);
tcadbdel(dba->tcadb);
pefree(dba, info->flags & DBA_PERSISTENT);
}

View file

@ -9,6 +9,7 @@ dba
?>
--FILE--
<?php
$handler = 'tcadb';
$lock_flag = 'l';
$db_filename = $db_file = __DIR__ .'/test0.tch';
@unlink($db_filename);