Skip to content

Commit 205e5ab

Browse files
committed
Uses pemalloc
1 parent aa970b7 commit 205e5ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frankenphp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ static void *php_main(void *arg) {
12521252

12531253
/* take a snapshot of the environment for sandboxing */
12541254
if (main_thread_env == NULL) {
1255-
main_thread_env = malloc(sizeof(HashTable));
1255+
main_thread_env = pmalloc(sizeof(HashTable), 1);
12561256
zend_hash_init(main_thread_env, 8, NULL, NULL, 1);
12571257
go_init_os_env(main_thread_env);
12581258
}

0 commit comments

Comments
 (0)