Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CPU_SET dynamic allocation and leak (#205)
The initial implementation had a number of issues: - The allocation of the CPU_SET should be checked for a NULL return. - The CPU_*_S macros should be used when working with dynamic sets. - The CPU_SET needs to be cleared via CPU_ZERO_S before use. - Dynamic CPU_SETs need to be freed after use. - The __riscv_hwprobe syscall is expecting a set *size* not a *count*.
- Loading branch information