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
F166292273: D43328.id132493.diff
Wed, Aug 12, 5:19 PM
Unknown Object (File)
Wed, Aug 12, 5:28 AM
Unknown Object (File)
Tue, Aug 11, 11:52 PM
Unknown Object (File)
Mon, Aug 10, 5:36 PM
Unknown Object (File)
Sat, Aug 8, 11:18 PM
Unknown Object (File)
Jun 26 2026, 3:47 AM
Unknown Object (File)
Jun 25 2026, 9:30 AM
Unknown Object (File)
Jun 24 2026, 1:57 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.