File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -103,35 +103,13 @@ static int pdo_dblib_stmt_cursor_closer(pdo_stmt_t *stmt TSRMLS_DC)
103
103
/* Cancel any pending results */
104
104
dbcancel (H -> link );
105
105
106
- if (stmt -> columns ) {
107
- int i = 0 ;
108
- for (; i < stmt -> column_count ; i ++ ) {
109
- if (stmt -> columns [i ].name ) {
110
- efree (stmt -> columns [i ].name );
111
- }
112
- }
113
- efree (stmt -> columns );
114
- stmt -> columns = NULL ;
115
- }
116
-
117
106
return 1 ;
118
107
}
119
108
120
109
static int pdo_dblib_stmt_dtor (pdo_stmt_t * stmt TSRMLS_DC )
121
110
{
122
111
pdo_dblib_stmt * S = (pdo_dblib_stmt * )stmt -> driver_data ;
123
112
124
- if (stmt -> columns ) {
125
- int i = 0 ;
126
- for (; i < stmt -> column_count ; i ++ ) {
127
- if (stmt -> columns [i ].name ) {
128
- efree (stmt -> columns [i ].name );
129
- }
130
- }
131
- efree (stmt -> columns );
132
- stmt -> columns = NULL ;
133
- }
134
-
135
113
efree (S );
136
114
137
115
return 1 ;
You can’t perform that action at this time.
0 commit comments