diff options
author | Sterling Hughes <sterling@php.net> | 2003-07-05 00:33:13 +0000 |
---|---|---|
committer | Sterling Hughes <sterling@php.net> | 2003-07-05 00:33:13 +0000 |
commit | 73d98824d75ccb0ec727006da5b9816f9ecaec87 (patch) | |
tree | 7f5b934f7b2246754e31ee22bb0a55a459f515c3 /ext | |
parent | 772f66699818561830d573952d5863f9b11972e6 (diff) | |
download | php-git-73d98824d75ccb0ec727006da5b9816f9ecaec87.tar.gz |
not a temp var unless its a singular var
Diffstat (limited to 'ext')
-rw-r--r-- | ext/simplexml/simplexml.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; } /* }}} */ |