com php-src: Fix memory leak (double copy) in SplPriorityQueue: ext/spl/spl_heap.c
| From: | Bob Weinand | Date: | Fri, 19 Jun 2015 01:42:59 +0000 |
| Subject: | com php-src: Fix memory leak (double copy) in SplPriorityQueue: ext/spl/spl_heap.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-87382@lists.php.net to get a copy of this message | ||
Commit: e58a1abb00ace0afce822dd12e38e880687e5e01
Author: Bob Weinand <bobwei9@hotmail.com> Fri, 19 Jun 2015 03:42:52 +0200
Parents: 29087f00f6be121a46135ac7f2b014cc5c082c66
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e58a1abb00ace0afce822dd12e38e880687e5e01
Log:
Fix memory leak (double copy) in SplPriorityQueue
Changed paths:
M ext/spl/spl_heap.c
Diff:
diff --git a/ext/spl/spl_heap.c b/ext/spl/spl_heap.c
index 1d8cde2..5d045f7 100644
--- a/ext/spl/spl_heap.c
+++ b/ext/spl/spl_heap.c
@@ -694,10 +694,6 @@ SPL_METHOD(SplPriorityQueue, extract)
return;
}
- if (Z_REFCOUNTED_P(value_out)) {
- Z_ADDREF_P(value_out);
- }
-
RETVAL_ZVAL(value_out, 1, 0);
zval_ptr_dtor(&value);
}