summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-03-21 00:12:20 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-03-21 00:12:20 +0100
commit267bf505c5604e1b1c3629f08d068aef68ef5777 (patch)
tree98385c7d26e6aa2686e1c8c6ebd8bb95ccb9765a
parentbgpd: peer->bgp must be non NULL (diff)
downloadfrr-267bf505c5604e1b1c3629f08d068aef68ef5777.tar.xz
frr-267bf505c5604e1b1c3629f08d068aef68ef5777.zip
ospf6d: Delete malloced on error path
We create route_to_del and then on the error path we are not properly freeing it up. Let's clean it up for the goodness of mankind. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
-rw-r--r--ospf6d/ospf6_asbr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c
index c23fe99bc..cd930f6c0 100644
--- a/ospf6d/ospf6_asbr.c
+++ b/ospf6d/ospf6_asbr.c
@@ -616,6 +616,8 @@ void ospf6_asbr_lsa_remove(struct ospf6_lsa *lsa,
prefix2str(&prefix, buf, sizeof(buf));
zlog_debug("AS-External route %s not found", buf);
}
+
+ ospf6_route_delete(route_to_del);
return;
}