HomeFreeBSD

net: Fix memory leaks in lltable_calc_llheader() error paths

Description

net: Fix memory leaks in lltable_calc_llheader() error paths

Also convert raw epoch_call() calls to lltable_free_entry() calls, no
functional change intended. There's no need to asynchronously free the
LLEs in that case to begin with, but we might as well use the lltable
interfaces consistently.

Noticed by code inspection; I believe lltable_calc_llheader() failures
do not generally happen in practice.

Reviewed by: bz
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 990a6d18b0cb1eee9e18a4220150d549b9bee753)

Details

Provenance
markjAuthored on Apr 8 2022, 3:47 PM
Parents
rG8b01c3026b78: libctf: Fix recursive descent into anonymous SOU fields
Branches
Unknown
Tags
Unknown