summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2015-06-19 03:42:52 +0200
committerBob Weinand <bobwei9@hotmail.com>2015-06-19 03:42:59 +0200
commite58a1abb00ace0afce822dd12e38e880687e5e01 (patch)
tree3e07fb7e13f17cd1943a9655db0f70d1db1589ee
parent29087f00f6be121a46135ac7f2b014cc5c082c66 (diff)
downloadphp-git-e58a1abb00ace0afce822dd12e38e880687e5e01.tar.gz
Fix memory leak (double copy) in SplPriorityQueue
-rw-r--r--ext/spl/spl_heap.c4
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);
}