HomeFreeBSD

ktls: Don't leak ktls session objects for certain errors.

Description

ktls: Don't leak ktls session objects for certain errors.

ktls_cleanup() does not free ktls session objects, it merely
cleans (and frees) members of the object.

Change callers to use ktls_free() instead.

Reviewed by: gallatin, markj
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D37352

Details

Provenance
jhbAuthored on Nov 12 2022, 12:00 AM
Reviewer
gallatin
Differential Revision
D37352: ktls: Don't leak ktls session objects for certain errors.
Parents
rG573bd1fcf532: wg: Drop the compat shim for sbcreatecontrol().
Branches
Unknown
Tags
Unknown