remove unneeded free parts

See bug #71667, free_statement already does the job
This commit is contained in:
Anatol Belski 2016-02-29 16:26:46 +01:00
parent d7fd614cc6
commit 7816698580

View File

@ -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;