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)
Sep 28 2024, 11:32 PM
Unknown Object (File)
Sep 28 2024, 9:32 PM
Unknown Object (File)
Sep 27 2024, 1:26 PM
Unknown Object (File)
Sep 27 2024, 4:54 AM
Unknown Object (File)
Sep 26 2024, 7:53 PM
Unknown Object (File)
Sep 22 2024, 7:38 PM
Unknown Object (File)
Sep 19 2024, 7:54 PM
Unknown Object (File)
Sep 19 2024, 4: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 Skipped
Unit
Tests Skipped
Build Status
Buildable 55258
Build 52147: arc lint + arc unit

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.