summaryrefslogtreecommitdiffstats
path: root/sbin/routed
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>2000-06-02 21:19:43 +0000
committerjlemon <jlemon@FreeBSD.org>2000-06-02 21:19:43 +0000
commit6fd18a5599ca3681010bc4ccb8ebedd959693f0f (patch)
treef5152211697df0100fa90eeabfe1d043c86e42b9 /sbin/routed
parent19c9d1ef4579d26f434f561383b29ce9f0b2dce9 (diff)
downloadFreeBSD-src-6fd18a5599ca3681010bc4ccb8ebedd959693f0f.zip
FreeBSD-src-6fd18a5599ca3681010bc4ccb8ebedd959693f0f.tar.gz
Fix memory leak when route addition fails.
Obtained from: NetBSD
Diffstat (limited to 'sbin/routed')
-rw-r--r--sbin/routed/table.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/routed/table.c b/sbin/routed/table.c
index c49e1cd..2258e1b 100644
--- a/sbin/routed/table.c
+++ b/sbin/routed/table.c
@@ -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);
}
}
OpenPOWER on IntegriCloud