summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/opcache/Optimizer/block_pass.c1
-rw-r--r--ext/opcache/Optimizer/zend_optimizer.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/ext/opcache/Optimizer/block_pass.c b/ext/opcache/Optimizer/block_pass.c
index 9a100e15f9..42b688d17d 100644
--- a/ext/opcache/Optimizer/block_pass.c
+++ b/ext/opcache/Optimizer/block_pass.c
@@ -937,6 +937,7 @@ static void assemble_code_blocks(zend_cfg *cfg, zend_op_array *op_array)
opline++;
}
}
+ free_alloca(map, use_heap);
}
/* adjust early binding list */
diff --git a/ext/opcache/Optimizer/zend_optimizer.c b/ext/opcache/Optimizer/zend_optimizer.c
index bc7e875ed3..43c80e3ed2 100644
--- a/ext/opcache/Optimizer/zend_optimizer.c
+++ b/ext/opcache/Optimizer/zend_optimizer.c
@@ -380,6 +380,7 @@ void zend_optimizer_remove_live_range(zend_op_array *op_array, uint32_t var)
opline++;
}
}
+ free_alloca(map, use_heap);
}
}