From: Donald Sharp Date: Tue, 20 Mar 2018 23:12:20 +0000 (-0400) Subject: ospf6d: Delete malloced on error path X-Git-Tag: frr-5.0-dev~132^2~4 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=267bf505c5604e1b1c3629f08d068aef68ef5777;p=matthieu%2Ffrr.git 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 --- diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c index c23fe99bc8..cd930f6c09 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; }