diff options
| author | Bob Weinand <bobwei9@hotmail.com> | 2015-06-19 03:42:52 +0200 |
|---|---|---|
| committer | Bob Weinand <bobwei9@hotmail.com> | 2015-06-19 03:42:59 +0200 |
| commit | e58a1abb00ace0afce822dd12e38e880687e5e01 (patch) | |
| tree | 3e07fb7e13f17cd1943a9655db0f70d1db1589ee /ext/spl/spl_heap.c | |
| parent | 29087f00f6be121a46135ac7f2b014cc5c082c66 (diff) | |
| download | php-git-e58a1abb00ace0afce822dd12e38e880687e5e01.tar.gz | |
Fix memory leak (double copy) in SplPriorityQueue
Diffstat (limited to 'ext/spl/spl_heap.c')
| -rw-r--r-- | ext/spl/spl_heap.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ext/spl/spl_heap.c b/ext/spl/spl_heap.c index 1d8cde25fa..5d045f7457 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); } |
