diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2016-10-31 18:15:16 +0100 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2016-11-28 19:18:35 +0100 |
commit | 5a8dfcd891fd12bb9db8f504bf3a083cea4f3cbd (patch) | |
tree | fcda5d991e405c4848158fc51af7a4e43ce4aee2 /zebra/zebra_rnh.h | |
parent | zebra: loop through all static routes on vrf enable/disable (diff) | |
download | frr-5a8dfcd891fd12bb9db8f504bf3a083cea4f3cbd.tar.xz frr-5a8dfcd891fd12bb9db8f504bf3a083cea4f3cbd.zip |
zebra: plug more memory leaks
Try to free all memory explicitly on exit. This should help to detect
new memory leaks in the future with tools like valgrind.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'zebra/zebra_rnh.h')
-rw-r--r-- | zebra/zebra_rnh.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/zebra_rnh.h b/zebra/zebra_rnh.h index 3a57ef1bc..4394fde4f 100644 --- a/zebra/zebra_rnh.h +++ b/zebra/zebra_rnh.h @@ -59,6 +59,7 @@ extern struct rnh *zebra_add_rnh(struct prefix *p, vrf_id_t vrfid, rnh_type_t type); extern struct rnh *zebra_lookup_rnh(struct prefix *p, vrf_id_t vrfid, rnh_type_t type); +extern void zebra_free_rnh (struct rnh *rnh); extern void zebra_delete_rnh(struct rnh *rnh, rnh_type_t type); extern void zebra_add_rnh_client(struct rnh *rnh, struct zserv *client, rnh_type_t type, vrf_id_t vrfid); |