summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2014-06-23 17:00:18 +0800
committerXinchen Hui <laruence@php.net>2014-06-23 17:00:18 +0800
commitb42f0ce5c4decd2b9f8c2b4c0e80dcb22e468556 (patch)
treed9bbf8b5c03a109c617680dc22fe93beba4ae89b
parentc84aff541f34349eac361a1b08f0e114e56235b3 (diff)
downloadphp-git-b42f0ce5c4decd2b9f8c2b4c0e80dcb22e468556.tar.gz
Fixed segfault (we need to close it for it has referenced by somewhere)
-rw-r--r--ext/pdo/pdo_dbh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c
index d6b4852b09..bb29ae3b2e 100644
--- a/ext/pdo/pdo_dbh.c
+++ b/ext/pdo/pdo_dbh.c
@@ -302,6 +302,7 @@ static PHP_METHOD(PDO, dbh_constructor)
/* is the connection still alive ? */
if (pdbh->methods->check_liveness && FAILURE == (pdbh->methods->check_liveness)(pdbh TSRMLS_CC)) {
/* nope... need to kill it */
+ zend_list_close(le);
pdbh = NULL;
}
}