mirror of
https://github.com/php/php-src.git
synced 2025-01-23 12:13:37 +08:00
fix possible crash in pdo_mysql_stmt_dtor()
This commit is contained in:
parent
f79f89e265
commit
6fddd6f878
@ -42,7 +42,7 @@ static int pdo_mysql_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC)
|
||||
S->result = NULL;
|
||||
}
|
||||
if (S->einfo.errmsg) {
|
||||
efree(S->einfo.errmsg);
|
||||
pefree(S->einfo.errmsg, stmt->dbh->is_persistent);
|
||||
S->einfo.errmsg = NULL;
|
||||
}
|
||||
#if HAVE_MYSQL_STMT_PREPARE
|
||||
|
Loading…
Reference in New Issue
Block a user