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;
}
{
pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data;
- efree(stmt->columns);
- stmt->columns = NULL;
+ 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);