summaryrefslogtreecommitdiff
path: root/ext/simplexml/simplexml.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2006-02-27 11:55:18 +0000
committerMarcus Boerger <helly@php.net>2006-02-27 11:55:18 +0000
commit44d4ba478fead6c61226d50cf7bee2b7c091c213 (patch)
tree68bb4d404ad2921436cca1253168f97ed3d0ec09 /ext/simplexml/simplexml.c
parentd4ba0a9fc3fbd4ac678b635e4bebc671901908f1 (diff)
downloadphp-git-44d4ba478fead6c61226d50cf7bee2b7c091c213.tar.gz
- Cleanup
Diffstat (limited to 'ext/simplexml/simplexml.c')
-rw-r--r--ext/simplexml/simplexml.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
index 9724d9371c..05b7f11c9b 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -332,8 +332,7 @@ static zval * sxe_prop_dim_read(zval *object, zval *member, zend_bool elements,
zval_dtor(&tmp_zv);
}
if (Z_TYPE_P(return_value) == IS_NULL) {
- return_value->refcount = 1;
- zval_ptr_dtor(&return_value);
+ FREE_ZVAL(return_value);
return_value = &EG(uninitialized_zval);
}