HomeFreeBSD

Improve style and fix a possible use-after-free case introduced in r268384

Description

Improve style and fix a possible use-after-free case introduced in r268384
by reinitializing the 'freestate' pointer after freeing the memory.

Obtained from: HardenedBSD (71fab80c5dd3034b71a29a61064625018671bbeb)
PR: 194525
Submitted by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
MFC after: 2 weeks

Details

Provenance
delphijAuthored on
Parents
rS276903: Use if_name() macro instead of ifp->if_xname.
Branches
Unknown
Tags
Unknown

Event Timeline