mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
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:
parent
c1f48e62dc
commit
48767d8734
|
@ -1589,6 +1589,7 @@ pfsync_sendout(int schedswi, int c)
|
|||
}
|
||||
#endif
|
||||
default:
|
||||
m_freem(m);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue