com php-src: Fix memory leak: ext/opcache/Optimizer/zend_call _graph.c

From: Date: Wed, 30 Mar 2016 13:16:07 +0000
Subject: com php-src: Fix memory leak: ext/opcache/Optimizer/zend_call _graph.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91550@lists.php.net to get a copy of this message
Commit: d6fc6d4ae6f9ce0b3e0d1fc6bd6b0e6b385f2127 Author: Andrea Faulds <ajf@ajf.me> Wed, 30 Mar 2016 14:16:07 +0100 Parents: 6ce873b54648030727d20e8012a3dfac515ef748 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d6fc6d4ae6f9ce0b3e0d1fc6bd6b0e6b385f2127 Log: Fix memory leak Leak was introduced in c88ffa9a5673cb3141660626ba1921671f0b84d6. Changed paths: M ext/opcache/Optimizer/zend_call_graph.c Diff: diff --git a/ext/opcache/Optimizer/zend_call_graph.c b/ext/opcache/Optimizer/zend_call_graph.c index bbc6fb5..ef586e1 100644 --- a/ext/opcache/Optimizer/zend_call_graph.c +++ b/ext/opcache/Optimizer/zend_call_graph.c @@ -260,6 +260,8 @@ static void zend_analyze_recursion(zend_call_graph *call_graph) call_info = call_info->next_caller; } } + + free_alloca(visited, use_heap); } static void zend_sort_op_arrays(zend_call_graph *call_graph)

« previous php.cvs (#91550) next »