Skip to content

Comments

ext/pcntl: Fix cpuset leak in pcntl_setcpuaffinity on out-of-range CPU ID#21268

Open
devnexen wants to merge 1 commit intophp:PHP-8.4from
devnexen:pcntl_cpu_fix
Open

ext/pcntl: Fix cpuset leak in pcntl_setcpuaffinity on out-of-range CPU ID#21268
devnexen wants to merge 1 commit intophp:PHP-8.4from
devnexen:pcntl_cpu_fix

Conversation

@devnexen
Copy link
Member

Add missing PCNTL_CPU_DESTROY(mask) call before RETURN_THROWS() when the cpu id is out of range, matching the cleanup on other error paths.

…U ID

Add missing PCNTL_CPU_DESTROY(mask) call before RETURN_THROWS() when
the cpu id is out of range, matching the cleanup on other error paths.
@devnexen devnexen changed the title Fix cpuset leak in pcntl_setcpuaffinity on out-of-range CPU ID ext/pcntl: Fix cpuset leak in pcntl_setcpuaffinity on out-of-range CPU ID Feb 21, 2026
@devnexen devnexen marked this pull request as ready for review February 21, 2026 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant