mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
fix memory leak when error during opening of routing socket
PR: kern/29336 Submitted by: Richard Andrades <richard@xebeo.com> MFC after: 1 month
This commit is contained in:
parent
f950650b78
commit
7ba271ae0b
1 changed files with 1 additions and 0 deletions
|
|
@ -127,6 +127,7 @@ rts_attach(struct socket *so, int proto, struct proc *p)
|
|||
rp = sotorawcb(so);
|
||||
if (error) {
|
||||
splx(s);
|
||||
so->so_pcb = NULL;
|
||||
free(rp, M_PCB);
|
||||
return error;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue