mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Don't leak memory in an error case.
MFC after: 1 week
This commit is contained in:
parent
59713bbf27
commit
6fb9db98b3
1 changed files with 5 additions and 0 deletions
|
|
@ -11235,6 +11235,11 @@ sctp_send_hb(struct sctp_tcb *stcb, struct sctp_nets *net, int so_locked
|
|||
break;
|
||||
#endif
|
||||
default:
|
||||
if (chk->data) {
|
||||
sctp_m_freem(chk->data);
|
||||
chk->data = NULL;
|
||||
}
|
||||
sctp_free_a_chunk(stcb, chk, so_locked);
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue