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
F132030329: D43328.diff
Mon, Oct 13, 2:23 AM
Unknown Object (File)
Sat, Oct 11, 9:21 AM
Unknown Object (File)
Sat, Oct 11, 3:41 AM
Unknown Object (File)
Sat, Oct 11, 3:40 AM
Unknown Object (File)
Sat, Oct 11, 3:40 AM
Unknown Object (File)
Fri, Oct 10, 8:42 PM
Unknown Object (File)
Sun, Oct 5, 7:55 AM
Unknown Object (File)
Thu, Oct 2, 3:41 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.