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)
Wed, Oct 16, 10:40 AM
Unknown Object (File)
Wed, Oct 16, 10:40 AM
Unknown Object (File)
Tue, Oct 15, 9:14 PM
Unknown Object (File)
Mon, Oct 14, 7:50 PM
Unknown Object (File)
Sun, Oct 13, 4:10 PM
Unknown Object (File)
Sat, Oct 12, 1:27 PM
Unknown Object (File)
Fri, Oct 11, 5:29 AM
Unknown Object (File)
Wed, Oct 9, 12:43 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