]> git.proxmox.com Git - mirror_frr.git/commit - ospf6d/ospf6_lsdb.c
ospf6d: Fix memory leaks
authorChirag Shah <chirag@cumulusnetworks.com>
Thu, 13 Jul 2017 18:39:22 +0000 (11:39 -0700)
committerChirag Shah <chirag@cumulusnetworks.com>
Thu, 27 Jul 2017 16:49:42 +0000 (09:49 -0700)
commitd107621dbcd2d0061bb2159ad0a7bdea6516ce3e
tree12a7d15a76b3b0ba850da483c9b1704b8373c212
parent0d510865ec4cc0d9cd54945647a274e18fa1898a
ospf6d: Fix memory leaks

Free route node upon asbr redistribute route cleanup from
external_id_table route tale.
Free route node when route_remove is called and
node->info is set to null.
Decrement route node lock in route_lookup api as it
is incremented as part of node_lookup api.
use local variable for nexthop vs. malloc in zebra parse
routine.

two of the memory leaks related to nexthops per route were not freed.
two of the memory leak detected per frr service restart

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
ospf6d/ospf6_asbr.c
ospf6d/ospf6_lsa.c
ospf6d/ospf6_lsdb.c
ospf6d/ospf6_memory.c
ospf6d/ospf6_memory.h
ospf6d/ospf6_route.c
ospf6d/ospf6_route.h
ospf6d/ospf6_spf.c
ospf6d/ospf6_zebra.c