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)
Thu, Apr 16, 10:13 PM
Unknown Object (File)
Wed, Apr 8, 10:07 PM
Unknown Object (File)
Sat, Apr 4, 7:22 AM
Unknown Object (File)
Fri, Apr 3, 3:23 PM
Unknown Object (File)
Thu, Apr 2, 2:16 PM
Unknown Object (File)
Mar 18 2026, 4:40 AM
Unknown Object (File)
Mar 18 2026, 4:33 AM
Unknown Object (File)
Mar 5 2026, 7:06 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.