]> granicus.if.org Git - php/commitdiff
use zval_dtor() instead of efree() + FREE_ZVAL()
authorAntony Dovgal <tony2001@php.net>
Tue, 16 Oct 2007 13:18:55 +0000 (13:18 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 16 Oct 2007 13:18:55 +0000 (13:18 +0000)
ext/mysqli/mysqli.c

index fd8b7f8244ae509c459f3f8362f69f97645d9bce..8ac24ec89cd97a198ceda21e39ce47432956c6ab 100644 (file)
@@ -205,8 +205,7 @@ void php_clear_mysql(MY_MYSQL *mysql) {
                mysql->hash_key = NULL;
        }
        if (mysql->li_read) {
-               efree(Z_STRVAL_P(mysql->li_read));
-               FREE_ZVAL(mysql->li_read);
+               zval_dtor(mysql->li_read);
                mysql->li_read = NULL;
        }
 }