mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
remove unneeded free parts
See bug #71667, free_statement already does the job
This commit is contained in:
parent
d7fd614cc6
commit
7816698580
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user