mirror of
https://github.com/php/php-src.git
synced 2025-01-24 12:43:38 +08:00
One more memory leak.
This commit is contained in:
parent
d782abf416
commit
9280b88a8c
@ -793,6 +793,17 @@ void pdo_dbstmt_free_storage(zend_object *object TSRMLS_DC)
|
||||
if (stmt->query_string) {
|
||||
efree(stmt->query_string);
|
||||
}
|
||||
|
||||
if (stmt->column_count) {
|
||||
int i;
|
||||
struct pdo_column_data *cols = stmt->columns;
|
||||
|
||||
for (i = 0; i < stmt->column_count; i++) {
|
||||
efree(cols[i].name);
|
||||
}
|
||||
efree(stmt->columns);
|
||||
}
|
||||
|
||||
zend_objects_store_del_ref(&stmt->database_object_handle TSRMLS_CC);
|
||||
#if 0
|
||||
/* declared in the header, but not implemented... */
|
||||
|
Loading…
Reference in New Issue
Block a user