HomeFreeBSD

inetd: don't leak `policy` on return

Description

inetd: don't leak policy on return

sep->se_policy gets a strdup'd version of policy, so we don't need it to
stick around afterwards.

While here, remove a couple of NULL checks prior to free(policy).

CID: 1006865
MFC after: 3 days

Details

Provenance
kevansAuthored on
Parents
rS356203: Don't hard-code size of struct riscv_bootparams.
Branches
Unknown
Tags
Unknown