com php-src: Fixed memory leak: ext/spl/spl_dllist.c
| From: | Dmitry Stogov | Date: | Mon, 14 Apr 2014 20:21:41 +0000 |
| Subject: | com php-src: Fixed memory leak: ext/spl/spl_dllist.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77400@lists.php.net to get a copy of this message | ||
Commit: 258a5a39fada8e09683fcde8800c4a94926ee042
Author: Dmitry Stogov <dmitry@zend.com> Tue, 15 Apr 2014 00:21:41 +0400
Parents: cc50ebc487158d13defa8021f1d7e05886b4b4a2
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=258a5a39fada8e09683fcde8800c4a94926ee042
Log:
Fixed memory leak
Changed paths:
M ext/spl/spl_dllist.c
Diff:
diff --git a/ext/spl/spl_dllist.c b/ext/spl/spl_dllist.c
index d0623c3..6bc21ee 100644
--- a/ext/spl/spl_dllist.c
+++ b/ext/spl/spl_dllist.c
@@ -560,7 +560,7 @@ SPL_METHOD(SplDoublyLinkedList, push)
return;
}
- SEPARATE_ARG_IF_REF(value);
+ SEPARATE_ZVAL_IF_REF(value);
intern = Z_SPLDLLIST_P(getThis());
spl_ptr_llist_push(intern->llist, value TSRMLS_CC);
@@ -580,7 +580,7 @@ SPL_METHOD(SplDoublyLinkedList, unshift)
return;
}
- SEPARATE_ARG_IF_REF(value);
+ SEPARATE_ZVAL_IF_REF(value);
intern = Z_SPLDLLIST_P(getThis());
spl_ptr_llist_unshift(intern->llist, value TSRMLS_CC);
@@ -806,7 +806,7 @@ SPL_METHOD(SplDoublyLinkedList, offsetSet)
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zz", &zindex, &value) ==
FAILURE) {
return;
}
- SEPARATE_ARG_IF_REF(value);
+ SEPARATE_ZVAL_IF_REF(value);
intern = Z_SPLDLLIST_P(getThis());