]> granicus.if.org Git - php/commitdiff
Andi says it should be zval_ptr_dtor
authorStanislav Malyshev <stas@php.net>
Tue, 7 Nov 2000 15:06:43 +0000 (15:06 +0000)
committerStanislav Malyshev <stas@php.net>
Tue, 7 Nov 2000 15:06:43 +0000 (15:06 +0000)
ext/standard/var.c

index 308a0206be0492037d896de02e3eeafd9dc36795..7c9f4d9044474523eb461ff81ebe5ee0de9f0bbe 100644 (file)
@@ -392,8 +392,7 @@ int php_var_unserialize(pval **rval, const char **p, const char *max, HashTable
                        if(zend_hash_index_find(var_hash, id, (void *)&rval_ref) != SUCCESS) {
                                return 0;
                        }
-                       zval_dtor(*rval);
-                       FREE_ZVAL(*rval);
+                       zval_ptr_dtor(rval);
                        *rval = *rval_ref;
                        (*rval)->refcount++;
                        (*rval)->is_ref = 1;