mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
ext/pdo_mysql: mysql_handle_closer nullify some freed data.
Close GH-10926
This commit is contained in:
parent
8e620b4ecb
commit
f6989df8cc
1 changed files with 2 additions and 0 deletions
|
@ -154,9 +154,11 @@ static void mysql_handle_closer(pdo_dbh_t *dbh)
|
|||
if (H) {
|
||||
if (H->server) {
|
||||
mysql_close(H->server);
|
||||
H->server = NULL;
|
||||
}
|
||||
if (H->einfo.errmsg) {
|
||||
pefree(H->einfo.errmsg, dbh->is_persistent);
|
||||
H->einfo.errmsg = NULL;
|
||||
}
|
||||
pefree(H, dbh->is_persistent);
|
||||
dbh->driver_data = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue