]> granicus.if.org Git - php/commitdiff
remove unneeded free parts
authorAnatol Belski <ab@php.net>
Mon, 29 Feb 2016 15:26:46 +0000 (16:26 +0100)
committerAnatol Belski <ab@php.net>
Mon, 29 Feb 2016 15:26:46 +0000 (16:26 +0100)
See bug #71667, free_statement already does the job

ext/pdo_dblib/dblib_stmt.c

index 2830272b8273eafb630638e8a0168becfb2e7165..e4a6d82200d02fc8bcb7a92e24aa496839fab631 100644 (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;