Skip to content

Commit 16d0824

Browse files
committed
Supress memory leak reports
1 parent 967fa51 commit 16d0824

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4106,6 +4106,9 @@ static int accel_finish_startup(void)
41064106
zend_bool old_reset_signals = SIGG(reset);
41074107
#endif
41084108

4109+
/* Cleanup heap, to avoid memory leak reports */
4110+
shutdown_memory_manager(1, 0);
4111+
41094112
if (UNEXPECTED(file_cache_only)) {
41104113
zend_accel_error(ACCEL_LOG_WARNING, "Preloading doesn't work in \"file_cache_only\" mode");
41114114
return SUCCESS;

0 commit comments

Comments
 (0)