From 73d98824d75ccb0ec727006da5b9816f9ecaec87 Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Sat, 5 Jul 2003 00:33:13 +0000 Subject: [PATCH] not a temp var unless its a singular var --- ext/simplexml/simplexml.c | 5 ++--- 1 file 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; } /* }}} */ -- 2.40.0