diff options
author | Chirag Shah <chirag@cumulusnetworks.com> | 2017-07-13 20:39:22 +0200 |
---|---|---|
committer | Chirag Shah <chirag@cumulusnetworks.com> | 2017-07-27 18:49:42 +0200 |
commit | d107621dbcd2d0061bb2159ad0a7bdea6516ce3e (patch) | |
tree | 12a7d15a76b3b0ba850da483c9b1704b8373c212 /ospf6d/ospf6_route.h | |
parent | Merge pull request #842 from qlyoung/update-style-guide (diff) | |
download | frr-d107621dbcd2d0061bb2159ad0a7bdea6516ce3e.tar.xz frr-d107621dbcd2d0061bb2159ad0a7bdea6516ce3e.zip |
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>
Diffstat (limited to 'ospf6d/ospf6_route.h')
-rw-r--r-- | ospf6d/ospf6_route.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/ospf6d/ospf6_route.h b/ospf6d/ospf6_route.h index 69d275f8b..166074fb7 100644 --- a/ospf6d/ospf6_route.h +++ b/ospf6d/ospf6_route.h @@ -256,7 +256,6 @@ extern void ospf6_linkstate_prefix2str(struct prefix *prefix, char *buf, extern struct ospf6_nexthop *ospf6_nexthop_create(void); extern void ospf6_nexthop_delete(struct ospf6_nexthop *nh); -extern void ospf6_free_nexthops(struct list *nh_list); extern void ospf6_clear_nexthops(struct list *nh_list); extern int ospf6_num_nexthops(struct list *nh_list); extern void ospf6_copy_nexthops(struct list *dst, struct list *src); |