HomeFreeBSD

net: Fix memory leaks upon arp_fillheader() failures

Description

net: Fix memory leaks upon arp_fillheader() failures

Free memory before return from arprequest_internal(). In in_arpinput(),
if arp_fillheader() fails, it should use goto drop.

Reviewed by: melifaro, imp, markj
Pull Request: https://github.com/freebsd/freebsd-src/pull/534

(cherry picked from commit f5777c123a6382f5fdc9732a87c8fa1ff672f148)

Details

Provenance
orange30 <44566632+orange30@users.noreply.github.com>Authored on Sep 1 2021, 3:37 PM
markjCommitted on Sep 17 2021, 1:14 PM
Parents
R10:476f87219f40: wpi: Fix a lock leak in an error path in wpi_run()
Branches
Unknown
Tags
Unknown

Event Timeline