From: Andrea Faulds Date: Wed, 30 Mar 2016 13:16:07 +0000 (+0100) Subject: Fix memory leak X-Git-Tag: php-7.1.0alpha1~395^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6fc6d4ae6f9ce0b3e0d1fc6bd6b0e6b385f2127;p=php Fix memory leak Leak was introduced in c88ffa9a5673cb3141660626ba1921671f0b84d6. --- diff --git a/ext/opcache/Optimizer/zend_call_graph.c b/ext/opcache/Optimizer/zend_call_graph.c index bbc6fb54f9..ef586e12a7 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)