Skip to content

Commit b5c3424

Browse files
committed
fix a memory leak on thread shutdown
1 parent eee1de1 commit b5c3424

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frankenphp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,9 @@ static void *php_thread(void *arg) {
904904

905905
go_frankenphp_on_thread_shutdown(thread_index);
906906

907+
free(local_ctx);
908+
local_ctx = NULL;
909+
907910
return NULL;
908911
}
909912

0 commit comments

Comments
 (0)