From c9e39592b521e3121c1531b45f0cea840e9f0646 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Tue, 7 Nov 2000 15:06:43 +0000 Subject: [PATCH] Andi says it should be zval_ptr_dtor --- ext/standard/var.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.50.1