mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
More leak fixes.
This commit is contained in:
parent
ff1cbb8460
commit
b7ecaca17f
@ -97,6 +97,7 @@ void pdo_handle_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt TSRMLS_DC)
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", message);
|
||||
|
||||
if (info) {
|
||||
zval_dtor(info);
|
||||
FREE_ZVAL(info);
|
||||
}
|
||||
} else {
|
||||
|
@ -808,6 +808,15 @@ void pdo_dbstmt_free_storage(zend_object *object TSRMLS_DC)
|
||||
}
|
||||
efree(stmt->columns);
|
||||
}
|
||||
|
||||
if (stmt->bound_params) {
|
||||
zend_hash_destroy(stmt->bound_params);
|
||||
FREE_HASHTABLE(stmt->bound_params);
|
||||
}
|
||||
if (stmt->bound_columns) {
|
||||
zend_hash_destroy(stmt->bound_columns);
|
||||
FREE_HASHTABLE(stmt->bound_columns);
|
||||
}
|
||||
|
||||
zend_objects_store_del_ref(&stmt->database_object_handle TSRMLS_CC);
|
||||
#if 0
|
||||
|
Loading…
Reference in New Issue
Block a user