diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2015-08-04 01:22:04 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2015-08-04 01:22:04 +0200 |
commit | d0ad621906dcf2137119c85f2cfb5361c245a06f (patch) | |
tree | 3c0b422f5fca325d56905b3f34b1d5009332f401 /sapi/phpdbg/phpdbg_list.c | |
parent | d8fe645db444e54fcc8b2555c08a5021c17ca2d3 (diff) | |
download | php-git-d0ad621906dcf2137119c85f2cfb5361c245a06f.tar.gz |
Fix further leaks
Diffstat (limited to 'sapi/phpdbg/phpdbg_list.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_list.c | 4 |
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) { |