From: Anatol Belski Date: Mon, 29 Feb 2016 15:26:46 +0000 (+0100) Subject: remove unneeded free parts X-Git-Tag: php-5.6.20RC1~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78166985805d9e6ec1a86af0ad428ddc128a516d;p=php remove unneeded free parts See bug #71667, free_statement already does the job --- diff --git a/ext/pdo_dblib/dblib_stmt.c b/ext/pdo_dblib/dblib_stmt.c index 2830272b82..e4a6d82200 100644 --- a/ext/pdo_dblib/dblib_stmt.c +++ b/ext/pdo_dblib/dblib_stmt.c @@ -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;