]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6d: Delete malloced on error path
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 20 Mar 2018 23:12:20 +0000 (19:12 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 20 Mar 2018 23:12:20 +0000 (19:12 -0400)
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>
ospf6d/ospf6_asbr.c

index c23fe99bc8bd5cb6eb09256b21234964bb8b5847..cd930f6c0983fef4af54759266865568fb07352b 100644 (file)
@@ -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;
        }