summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/pdo_dblib/dblib_stmt.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/ext/pdo_dblib/dblib_stmt.c b/ext/pdo_dblib/dblib_stmt.c
index 2830272b82..e4a6d82200 100644
--- a/ext/pdo_dblib/dblib_stmt.c
+++ b/ext/pdo_dblib/dblib_stmt.c
@@ -103,17 +103,6 @@ static int pdo_dblib_stmt_cursor_closer(pdo_stmt_t *stmt TSRMLS_DC)
/* Cancel any pending results */
dbcancel(H->link);
- if (stmt->columns) {
- int i = 0;
- for (; i < stmt->column_count; i++) {
- if (stmt->columns[i].name) {
- efree(stmt->columns[i].name);
- }
- }
- efree(stmt->columns);
- stmt->columns = NULL;
- }
-
return 1;
}
@@ -121,17 +110,6 @@ static int pdo_dblib_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC)
{
pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data;
- if (stmt->columns) {
- int i = 0;
- for (; i < stmt->column_count; i++) {
- if (stmt->columns[i].name) {
- efree(stmt->columns[i].name);
- }
- }
- efree(stmt->columns);
- stmt->columns = NULL;
- }
-
efree(S);
return 1;