HomeFreeBSD

pfsync: fix memory leak

Description

pfsync: fix memory leak

The recent refactoring to prepare for pfsync over IPv6 introduced a
memory leak.
If we don't have a sync peer configured we return early (without sending
out a packet), but failed to free the newly allocated packet.

Sponsored by: Rubicon Communications, LLC ("Netgate")

Details

Provenance
kpAuthored on Nov 15 2022, 11:11 AM
Parents
rGc1f48e62dc48: proc: retire 2 unused lock annotations
Branches
Unknown
Tags
Unknown