com php-src: Fix memory leak with opcache: sapi/phpdbg/phpdbg _list.c

From: Date: Fri, 24 Jul 2015 23:08:57 +0000
Subject: com php-src: Fix memory leak with opcache: sapi/phpdbg/phpdbg _list.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-88158@lists.php.net to get a copy of this message
Commit: e960d3ed2cde136a23d8bd6223e653951caf7be3 Author: Bob Weinand <bobwei9@hotmail.com> Sat, 25 Jul 2015 01:08:57 +0200 Parents: b4c595dd82548575304d3b41b1c9321f50a5fefd Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e960d3ed2cde136a23d8bd6223e653951caf7be3 Log: Fix memory leak with opcache Changed paths: M sapi/phpdbg/phpdbg_list.c Diff: diff --git a/sapi/phpdbg/phpdbg_list.c b/sapi/phpdbg/phpdbg_list.c index d00f944..3559517 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); }

« previous php.cvs (#88158) next »