From: Stanislav Malyshev Date: Tue, 7 Nov 2000 15:06:43 +0000 (+0000) Subject: Andi says it should be zval_ptr_dtor X-Git-Tag: php-4.0.4RC3~287 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9e39592b521e3121c1531b45f0cea840e9f0646;p=php Andi says it should be zval_ptr_dtor --- diff --git a/ext/standard/var.c b/ext/standard/var.c index 308a0206be..7c9f4d9044 100644 --- a/ext/standard/var.c +++ b/ext/standard/var.c @@ -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;