diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2015-07-25 01:08:57 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2015-07-25 01:08:57 +0200 |
commit | e960d3ed2cde136a23d8bd6223e653951caf7be3 (patch) | |
tree | 00b5106e4227a36f7f3bcd63f9a5efca02bfae08 /sapi/phpdbg/phpdbg_list.c | |
parent | b4c595dd82548575304d3b41b1c9321f50a5fefd (diff) | |
download | php-git-e960d3ed2cde136a23d8bd6223e653951caf7be3.tar.gz |
Fix memory leak with opcache
Diffstat (limited to 'sapi/phpdbg/phpdbg_list.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_list.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sapi/phpdbg/phpdbg_list.c b/sapi/phpdbg/phpdbg_list.c index d00f944e9b..3559517c3e 100644 --- a/sapi/phpdbg/phpdbg_list.c +++ b/sapi/phpdbg/phpdbg_list.c @@ -342,6 +342,9 @@ void phpdbg_free_file_source(zval *zv) { efree(data->buf); } + if (!data->destroy_op_array) { + efree(data->op_array->refcount); + } if (!data->destroy_op_array || destroy_op_array(data->op_array)) { efree(data->op_array); } |