From: Bob Weinand Date: Fri, 24 Jul 2015 23:08:57 +0000 (+0200) Subject: Fix memory leak with opcache X-Git-Tag: php-7.0.0beta3~5^2~97^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e960d3ed2cde136a23d8bd6223e653951caf7be3;p=php Fix memory leak with opcache --- 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); }