summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql/mysql_driver.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2015-08-18 18:33:07 +0800
committerXinchen Hui <laruence@php.net>2015-08-18 18:33:07 +0800
commitdca6d1027a4b4c544c283d0021c0725b9a27cfeb (patch)
treeb0e0cdb85357e037a804ef3af84efe29b25c6ca7 /ext/pdo_mysql/mysql_driver.c
parent8df34610869566c5af3f21efa2575e6e2e262d74 (diff)
downloadphp-git-dca6d1027a4b4c544c283d0021c0725b9a27cfeb.tar.gz
Fixed bug #70272 (Segfault in pdo_mysql)
Diffstat (limited to 'ext/pdo_mysql/mysql_driver.c')
-rw-r--r--ext/pdo_mysql/mysql_driver.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c
index 4f55d96d00..8931da2e8c 100644
--- a/ext/pdo_mysql/mysql_driver.c
+++ b/ext/pdo_mysql/mysql_driver.c
@@ -147,11 +147,9 @@ static int 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;