File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -298,10 +298,7 @@ static void frankenphp_snapshot_session_handlers(void) {
298298 return ; /* No user handlers to snapshot */
299299 }
300300
301- worker_session_handlers_snapshot = malloc (sizeof (session_user_handlers ));
302- if (worker_session_handlers_snapshot == NULL ) {
303- return ; /* Memory allocation failed */
304- }
301+ worker_session_handlers_snapshot = emalloc (sizeof (session_user_handlers ));
305302
306303 /* Copy each handler zval with incremented reference count */
307304#define SNAPSHOT_HANDLER (handler ) \
@@ -382,7 +379,7 @@ static void frankenphp_cleanup_worker_state(void) {
382379
383380#undef FREE_HANDLER
384381
385- free (worker_session_handlers_snapshot );
382+ efree (worker_session_handlers_snapshot );
386383 worker_session_handlers_snapshot = NULL ;
387384 }
388385}
You can’t perform that action at this time.
0 commit comments