Page MenuHomeFreeBSD

dummynet: free(NULL, M_DUMMYNET); is safe
ClosedPublic

Authored by kp on May 21 2021, 3:14 PM.
Tags
None
Referenced Files
F106829103: D30382.diff
Mon, Jan 6, 2:11 AM
Unknown Object (File)
Tue, Dec 17, 10:44 AM
Unknown Object (File)
Tue, Dec 17, 3:25 AM
Unknown Object (File)
Tue, Dec 10, 6:59 PM
Unknown Object (File)
Dec 5 2024, 8:10 PM
Unknown Object (File)
Dec 4 2024, 2:21 PM
Unknown Object (File)
Dec 4 2024, 2:20 PM
Unknown Object (File)
Dec 4 2024, 2:20 PM

Details

Summary

There's no need to check pointers for NULL before free()ing them.

No functional change.

MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable