summaryrefslogtreecommitdiff
path: root/ext/pdo
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2014-04-25 11:34:00 +0800
committerXinchen Hui <laruence@gmail.com>2014-04-25 11:34:00 +0800
commit35f22f609a8300f26b5a3886c92d3eb58052bc86 (patch)
tree8a488a1883368c8e3cd4ecc16059844181d3c115 /ext/pdo
parent1ccc250c5049521cf3c3c8058fcde2a9dc4403cb (diff)
downloadphp-git-35f22f609a8300f26b5a3886c92d3eb58052bc86.tar.gz
Fixed memleak
Diffstat (limited to 'ext/pdo')
-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 b6cf0265f0..89b38511ea 100644
--- a/ext/pdo/pdo_dbh.c
+++ b/ext/pdo/pdo_dbh.c
@@ -87,6 +87,7 @@ void pdo_raise_impl_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *sqlstate
add_next_index_string(&info, *pdo_err);
add_next_index_long(&info, 0);
zend_update_property(pdo_ex, &ex, "errorInfo", sizeof("errorInfo")-1, &info TSRMLS_CC);
+ zval_ptr_dtor(&info);
zend_throw_exception_object(&ex TSRMLS_CC);
}