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)
Fri, Sep 27, 1:26 PM
Unknown Object (File)
Fri, Sep 27, 4:54 AM
Unknown Object (File)
Thu, Sep 26, 7:53 PM
Unknown Object (File)
Sun, Sep 22, 7:38 PM
Unknown Object (File)
Thu, Sep 19, 7:54 PM
Unknown Object (File)
Thu, Sep 19, 4:33 PM
Unknown Object (File)
Tue, Sep 17, 12:18 AM
Unknown Object (File)
Mon, Sep 16, 1:12 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.