]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
net: Fix memory leaks upon arp_fillheader() failures
authororange30 <44566632+orange30@users.noreply.github.com>
Wed, 1 Sep 2021 15:37:36 +0000 (23:37 +0800)
committerMark Johnston <markj@FreeBSD.org>
Fri, 10 Sep 2021 13:45:26 +0000 (09:45 -0400)
commitf5777c123a6382f5fdc9732a87c8fa1ff672f148
tree356799cefbde2371c6efe16e4443e904e5cddf73
parent6598cababf6425181a755ec97c3fa66d7ee31393
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
MFC after: 1 week
Pull Request: https://github.com/freebsd/freebsd-src/pull/534
sys/netinet/if_ether.c