diff options
Diffstat (limited to 'sapi/phpdbg/phpdbg_list.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_list.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sapi/phpdbg/phpdbg_list.c b/sapi/phpdbg/phpdbg_list.c index 7b1bc8783b..a2f5ff6cc5 100644 --- a/sapi/phpdbg/phpdbg_list.c +++ b/sapi/phpdbg/phpdbg_list.c @@ -288,6 +288,9 @@ zend_op_array *phpdbg_compile_file(zend_file_handle *file, int type) { fake.opened_path = NULL; zend_file_handle_dtor(&fake); + dataptr->op_array = ret; + ++*dataptr->op_array->refcount; + return ret; } @@ -301,6 +304,10 @@ void phpdbg_free_file_source(phpdbg_file_source *data) { efree(data->buf); } + if (destroy_op_array(data->op_array)) { + efree(data->op_array); + } + efree(data); } |