diff options
author | remi <remi@cvs.openbsd.org> | 2018-06-10 14:39:39 +0000 |
---|---|---|
committer | remi <remi@cvs.openbsd.org> | 2018-06-10 14:39:39 +0000 |
commit | 793a3aab34a419e15400eddd537dcff739adee40 (patch) | |
tree | bbcfcf232a66e72d7e706e1ce7ab6f9eacc17f29 /usr.sbin/ospf6d | |
parent | 5017f0333b21a604afe286e4c9077e70690086d8 (diff) |
memory leak spotted by claudio@
go ahead jca@
OK claudio@
Diffstat (limited to 'usr.sbin/ospf6d')
-rw-r--r-- | usr.sbin/ospf6d/rde.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ospf6d/rde.c b/usr.sbin/ospf6d/rde.c index 73b6b7bfc1a..578c5d80357 100644 --- a/usr.sbin/ospf6d/rde.c +++ b/usr.sbin/ospf6d/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.73 2018/06/10 14:31:49 remi Exp $ */ +/* $OpenBSD: rde.c,v 1.74 2018/06/10 14:39:38 remi Exp $ */ /* * Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org> @@ -1363,7 +1363,8 @@ prefix_tree_add(struct prefix_tree *tree, struct lsa_link *lsa) old->prefix->options |= new->prefix->options; free(new); } - } + } else + free(new); cur_prefix = cur_prefix + len; } |