Fix memory leak when route addition fails.

Obtained from:  NetBSD
This commit is contained in:
Jonathan Lemon 2000-06-02 21:19:43 +00:00
parent e8dca93127
commit 48f0c5dc0c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61186

View File

@ -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);
}
}