Skip to content

Commit

Permalink
fix memleak (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
realFlowControl authored Oct 21, 2024
1 parent 002f3d5 commit 8b61354
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,11 @@ static void php_parallel_scheduler_pull(zend_function *function) {
}
}

#if PHP_VERSION_ID < 80200
ZEND_MAP_PTR_NEW(function->op_array.run_time_cache);
#else
ZEND_MAP_PTR_INIT(function->op_array.run_time_cache, NULL);
#endif

#if PHP_VERSION_ID >= 80100
if (function->op_array.num_dynamic_func_defs) {
Expand Down

0 comments on commit 8b61354

Please sign in to comment.