One more memory leak.

This commit is contained in:
Ilia Alshanetsky 2004-05-25 14:35:49 +00:00
parent d782abf416
commit 9280b88a8c

View File

@ -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... */