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
F171128467: D43328.id132493.diff
Tue, Sep 8, 9:23 PM
F171127268: D43328.diff
Tue, Sep 8, 9:14 PM
F171107282: D43328.id132336.diff
Tue, Sep 8, 6:05 PM
Unknown Object (File)
Mon, Sep 7, 3:11 PM
Unknown Object (File)
Sat, Sep 5, 10:21 PM
Unknown Object (File)
Sat, Sep 5, 3:18 PM
Unknown Object (File)
Sat, Sep 5, 11:49 AM
Unknown Object (File)
Sat, Sep 5, 5:32 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.