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)
Sat, Feb 8, 7:08 PM
Unknown Object (File)
Wed, Feb 5, 2:37 PM
Unknown Object (File)
Tue, Jan 28, 11:37 PM
Unknown Object (File)
Mon, Jan 27, 1:09 PM
Unknown Object (File)
Mon, Jan 20, 12:58 AM
Unknown Object (File)
Jan 11 2025, 6:18 AM
Unknown Object (File)
Jan 11 2025, 4:01 AM
Unknown Object (File)
Dec 24 2024, 9:59 AM
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.