mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Fix memory leak when route addition fails.
Obtained from: NetBSD
This commit is contained in:
parent
e8dca93127
commit
48f0c5dc0c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61186
|
@ -1728,6 +1728,7 @@ rtadd(naddr dst,
|
|||
rhead, rt->rt_nodes)) {
|
||||
msglog("rnh_addaddr() failed for %s mask=%#lx",
|
||||
naddr_ntoa(dst), (u_long)mask);
|
||||
free(rt);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue