com php-src: Fixed segfault (we need to close it for it has referenced by somewhere): ext/pdo/pdo_dbh.c
| From: | Xinchen Hui | Date: | Mon, 23 Jun 2014 09:00:18 +0000 |
| Subject: | com php-src: Fixed segfault (we need to close it for it has referenced by somewhere): ext/pdo/pdo_dbh.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-79019@lists.php.net to get a copy of this message | ||
Commit: b42f0ce5c4decd2b9f8c2b4c0e80dcb22e468556
Author: Xinchen Hui <laruence@php.net> Mon, 23 Jun 2014 17:00:18 +0800
Parents: c84aff541f34349eac361a1b08f0e114e56235b3
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b42f0ce5c4decd2b9f8c2b4c0e80dcb22e468556
Log:
Fixed segfault (we need to close it for it has referenced by somewhere)
Changed paths:
M ext/pdo/pdo_dbh.c
Diff:
diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c
index d6b4852..bb29ae3 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;
}
}