Page MenuHomeFreeBSD

libhtr: pthread_attr_setaffinity_np(): Replace calloc() with malloc()
ClosedPublic

Authored by olce on Jan 5 2024, 2:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Feb 27, 6:52 AM
Unknown Object (File)
Mon, Feb 23, 6:33 PM
Unknown Object (File)
Sun, Feb 22, 8:06 PM
Unknown Object (File)
Mon, Feb 9, 8:23 AM
Unknown Object (File)
Jan 30 2026, 1:23 AM
Unknown Object (File)
Jan 25 2026, 6:56 PM
Unknown Object (File)
Dec 18 2025, 9:18 AM
Unknown Object (File)
Dec 15 2025, 9:33 PM
Subscribers

Details

Summary

Using calloc() instead of malloc() is useless here since the allocated
memory is to be wholly crushed by the memcpy() call that follows.

Suggested by: kib
MFC after: 2 weeks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

olce requested review of this revision.Jan 5 2024, 2:18 PM
This revision is now accepted and ready to land.Jan 5 2024, 2:57 PM

The typo in the title ("libhtr" => "libthr") will be fixed on commit.