diff options
author | jlemon <jlemon@FreeBSD.org> | 2000-06-02 21:19:43 +0000 |
---|---|---|
committer | jlemon <jlemon@FreeBSD.org> | 2000-06-02 21:19:43 +0000 |
commit | 6fd18a5599ca3681010bc4ccb8ebedd959693f0f (patch) | |
tree | f5152211697df0100fa90eeabfe1d043c86e42b9 /sbin/routed | |
parent | 19c9d1ef4579d26f434f561383b29ce9f0b2dce9 (diff) | |
download | FreeBSD-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.c | 1 |
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); } } |