Fix a memory leak in ARP queues.
Pointed out by: jhb@ MFC after: 2 weeks
This commit is contained in:
parent
3b232eb663
commit
ede990172f
@ -736,8 +736,7 @@ in_arpinput(struct mbuf *m)
|
||||
la->la_numheld = 0;
|
||||
memcpy(&sa, L3_ADDR(la), sizeof(sa));
|
||||
LLE_WUNLOCK(la);
|
||||
for (m_hold = la->la_hold, la->la_hold = NULL;
|
||||
m_hold != NULL; m_hold = m_hold_next) {
|
||||
for (; m_hold != NULL; m_hold = m_hold_next) {
|
||||
m_hold_next = m_hold->m_nextpkt;
|
||||
m_hold->m_nextpkt = NULL;
|
||||
(*ifp->if_output)(ifp, m_hold, &sa, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user