diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2006-07-31 20:18:11 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2006-07-31 20:18:11 +0000 |
| commit | c6ace95236d5b728b0886ad26a3b8c6dd1486780 (patch) | |
| tree | 4d5f046f66589d1bba705ea6d507133986e7623f /ext/pdo/pdo_stmt.c | |
| parent | 624e5f83c89d19f520c5c466a3561468f70b5541 (diff) | |
| download | php-git-c6ace95236d5b728b0886ad26a3b8c6dd1486780.tar.gz | |
Fixed bug #37445 (Fixed crash in pdo_mysql resulting from premature object
destruction).
Diffstat (limited to 'ext/pdo/pdo_stmt.c')
| -rwxr-xr-x | ext/pdo/pdo_stmt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 057e339f51..9996da7ef6 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -2258,6 +2258,7 @@ static void free_statement(pdo_stmt_t *stmt TSRMLS_DC) do_fetch_opt_finish(stmt, 1 TSRMLS_CC); zend_objects_store_del_ref(&stmt->database_object_handle TSRMLS_CC); + php_pdo_dbh_delref(stmt->dbh TSRMLS_CC); efree(stmt); } |
