summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_list.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2015-08-04 01:22:04 +0200
committerBob Weinand <bobwei9@hotmail.com>2015-08-04 01:22:04 +0200
commitd0ad621906dcf2137119c85f2cfb5361c245a06f (patch)
tree3c0b422f5fca325d56905b3f34b1d5009332f401 /sapi/phpdbg/phpdbg_list.c
parentd8fe645db444e54fcc8b2555c08a5021c17ca2d3 (diff)
downloadphp-git-d0ad621906dcf2137119c85f2cfb5361c245a06f.tar.gz
Fix further leaks
Diffstat (limited to 'sapi/phpdbg/phpdbg_list.c')
-rw-r--r--sapi/phpdbg/phpdbg_list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/phpdbg/phpdbg_list.c b/sapi/phpdbg/phpdbg_list.c
index c30b81bc64..f3181c0701 100644
--- a/sapi/phpdbg/phpdbg_list.c
+++ b/sapi/phpdbg/phpdbg_list.c
@@ -312,10 +312,10 @@ zend_op_array *phpdbg_init_compile_file(zend_file_handle *file, int type) {
dataptr->op_array = *op_array;
if (dataptr->op_array.refcount) {
- efree(op_array);
+ ++*dataptr->op_array.refcount;
}
- return &dataptr->op_array;
+ return op_array;
}
void phpdbg_free_file_source(zval *zv) {