]> granicus.if.org Git - php/commitdiff
removed duplicate code
authorGeorg Richter <georg@php.net>
Tue, 18 Feb 2003 00:32:47 +0000 (00:32 +0000)
committerGeorg Richter <georg@php.net>
Tue, 18 Feb 2003 00:32:47 +0000 (00:32 +0000)
ext/mysqli/mysqli.c

index 75996eab4d461b99e55c0762428a6d60fe802efe..0fbe0f514e0eb13d92f843b7c6cbc3ddc9c3083e 100644 (file)
@@ -81,13 +81,6 @@ static void mysqli_objects_dtor(void *object, zend_object_handle handle TSRMLS_D
        if (intern->zo.ce == mysqli_link_class_entry) {
                MYSQL   *mysql = (MYSQL *)intern->ptr;
                if (mysql) {
-                       /*
-                        * Don't free mysql if there exist
-                        * non closed statements
-                        */
-                       if (mysql->stmts) {
-                               mysql->free_me = 0;
-                       }
                        mysql_close(mysql);
                }
        } else if (intern->zo.ce == mysqli_stmt_class_entry) { /* stmt object */