]> granicus.if.org Git - php/commitdiff
not a temp var unless its a singular var
authorSterling Hughes <sterling@php.net>
Sat, 5 Jul 2003 00:33:13 +0000 (00:33 +0000)
committerSterling Hughes <sterling@php.net>
Sat, 5 Jul 2003 00:33:13 +0000 (00:33 +0000)
ext/simplexml/simplexml.c

index f51e511a44ab08494c4f30d868e4703ca67d723d..034a49a02394181a7221b6a0f0bc1062a721d858 100644 (file)
@@ -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;
 }
 /* }}} */