From: Sterling Hughes Date: Sat, 5 Jul 2003 00:33:13 +0000 (+0000) Subject: not a temp var unless its a singular var X-Git-Tag: BEFORE_ARG_INFO~372 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73d98824d75ccb0ec727006da5b9816f9ecaec87;p=php not a temp var unless its a singular var --- diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index f51e511a44..034a49a023 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -179,11 +179,10 @@ next_iter: zval_dtor(return_value); FREE_ZVAL(return_value); return_value = value; + } else { + PZVAL_UNLOCK(return_value); } - /* create temporary variable */ - PZVAL_UNLOCK(return_value); - return return_value; } /* }}} */