com php-src: Fixed reference counting: ext/spl/spl_array.c
| From: | Dmitry Stogov | Date: | Wed, 16 Apr 2014 12:28:11 +0000 |
| Subject: | com php-src: Fixed reference counting: ext/spl/spl_array.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77372@lists.php.net to get a copy of this message | ||
Commit: 7537251bd76511961d60d64b883f3a80ec959671
Author: Dmitry Stogov <dmitry@zend.com> Wed, 16 Apr 2014 16:28:11 +0400
Parents: 62016f5ab34166f1defc90fdda6e11025db823eb
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7537251bd76511961d60d64b883f3a80ec959671
Log:
Fixed reference counting
Changed paths:
M ext/spl/spl_array.c
Diff:
diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c
index 79e53c0..3d744af 100644
--- a/ext/spl/spl_array.c
+++ b/ext/spl/spl_array.c
@@ -1243,6 +1243,7 @@ SPL_METHOD(Array, getIteratorClass)
return;
}
+ STR_ADDREF(intern->ce_get_iterator->name);
RETURN_STR(intern->ce_get_iterator->name);
}
/* }}} */