Skip to content

Commit 7816698

Browse files
committed
remove unneeded free parts
See bug #71667, free_statement already does the job
1 parent d7fd614 commit 7816698

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

ext/pdo_dblib/dblib_stmt.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -103,35 +103,13 @@ static int pdo_dblib_stmt_cursor_closer(pdo_stmt_t *stmt TSRMLS_DC)
103103
/* Cancel any pending results */
104104
dbcancel(H->link);
105105

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-
117106
return 1;
118107
}
119108

120109
static int pdo_dblib_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC)
121110
{
122111
pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data;
123112

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-
135113
efree(S);
136114

137115
return 1;

0 commit comments

Comments
 (0)