Page MenuHomeFreeBSD

pf: fix state leak
ClosedPublic

Authored by kp on Sep 7 2023, 3:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jul 27, 3:21 AM
Unknown Object (File)
Thu, Jul 23, 4:30 AM
Unknown Object (File)
Sat, Jul 18, 5:24 PM
Unknown Object (File)
May 13 2026, 7:59 PM
Unknown Object (File)
May 13 2026, 7:59 PM
Unknown Object (File)
May 13 2026, 7:52 PM
Unknown Object (File)
May 9 2026, 4:19 PM
Unknown Object (File)
May 8 2026, 9:45 PM

Details

Summary

If we hit the csfailed case in pf_create_state() we may have allocated
a state, so we must also free it. While here reduce the amount of
duplicated cleanup code.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

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

Event Timeline

kp requested review of this revision.Sep 7 2023, 3:39 PM
This revision was not accepted when it landed; it landed in state Needs Review.Sep 10 2023, 8:40 PM
Closed by commit rGb6ce41118bb1: pf: fix state leak (authored by kp). · Explain Why
This revision was automatically updated to reflect the committed changes.