On 5/7/26 21:24, Warner Losh wrote:
Fix one of the TODO items when creating a new thread: release the copied
cpu and free the task state.

Signed-off-by: Warner Losh <[email protected]>
---
Free the new task state and drop references to copied cpu structure when
pthread_create failes.
---
Changes in v2:
- Add ifdef for aarch64 so we don't leak stacks
- set errno = ret to fix error propagation.
- Link to v1: 
https://lore.kernel.org/qemu-devel/[email protected]
---
  linux-user/syscall.c | 10 +++++++++-
  1 file changed, 9 insertions(+), 1 deletion(-)

Reviewed-by: Helge Deller <[email protected]>

applied to linux-user-for-next git tree.

Thanks!
Helge

Reply via email to