Page MenuHomeFreeBSD

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

Authored by kp on May 21 2021, 3:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 17, 2:35 PM
Unknown Object (File)
Sat, Oct 17, 6:35 AM
Unknown Object (File)
Sun, Oct 11, 12:36 AM
Unknown Object (File)
Sat, Oct 10, 12:03 PM
Unknown Object (File)
Thu, Oct 8, 10:42 PM
Unknown Object (File)
Thu, Oct 8, 9:38 PM
Unknown Object (File)
Sun, Oct 4, 3:52 PM
Unknown Object (File)
Mon, Sep 28, 9:50 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