More leak fixes.

This commit is contained in:
Ilia Alshanetsky 2004-05-25 16:38:28 +00:00
parent ff1cbb8460
commit b7ecaca17f
2 changed files with 10 additions and 0 deletions

View File

@ -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 {

View File

@ -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