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")
This commit is contained in:
Kristof Provost 2022-11-15 12:11:32 +01:00
parent c1f48e62dc
commit 48767d8734

View File

@ -1589,6 +1589,7 @@ pfsync_sendout(int schedswi, int c)
}
#endif
default:
m_freem(m);
return;
}