summaryrefslogtreecommitdiff
path: root/ext/opcache/Optimizer/zend_call_graph.c
diff options
context:
space:
mode:
authorAndrea Faulds <ajf@ajf.me>2016-03-30 14:16:07 +0100
committerAndrea Faulds <ajf@ajf.me>2016-03-30 14:16:07 +0100
commitd6fc6d4ae6f9ce0b3e0d1fc6bd6b0e6b385f2127 (patch)
treea9dc0baae44baab1cf78156dfd63e5849579264b /ext/opcache/Optimizer/zend_call_graph.c
parent6ce873b54648030727d20e8012a3dfac515ef748 (diff)
downloadphp-git-d6fc6d4ae6f9ce0b3e0d1fc6bd6b0e6b385f2127.tar.gz
Fix memory leak
Leak was introduced in c88ffa9a5673cb3141660626ba1921671f0b84d6.
Diffstat (limited to 'ext/opcache/Optimizer/zend_call_graph.c')
-rw-r--r--ext/opcache/Optimizer/zend_call_graph.c2
1 files changed, 2 insertions, 0 deletions
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)