diff options
author | Maria Matejka <mq@ucw.cz> | 2023-04-20 21:08:38 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2023-04-22 20:49:58 +0200 |
commit | 1141ce4e2d924f29e6e31ccf5e325f870c8895dd (patch) | |
tree | 4d985af0d0008ca3468c614f157ef92f50b7df49 /proto | |
parent | b3f805ce29487f790090fcf31096f5a7cf1d585d (diff) |
Resource pool closing has its dedicated function
Diffstat (limited to 'proto')
-rw-r--r-- | proto/babel/babel.c | 2 | ||||
-rw-r--r-- | proto/bgp/attrs.c | 2 | ||||
-rw-r--r-- | proto/mrt/mrt.c | 2 | ||||
-rw-r--r-- | proto/ospf/iface.c | 2 | ||||
-rw-r--r-- | proto/ospf/neighbor.c | 2 | ||||
-rw-r--r-- | proto/radv/radv.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/proto/babel/babel.c b/proto/babel/babel.c index d398da8e..e95a0ead 100644 --- a/proto/babel/babel.c +++ b/proto/babel/babel.c @@ -1881,7 +1881,7 @@ babel_remove_iface(struct babel_proto *p, struct babel_iface *ifa) rem_node(NODE ifa); - rfree(ifa->pool); /* contains ifa itself, locks, socket, etc */ + rp_free(ifa->pool); /* contains ifa itself, locks, socket, etc */ } static int diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c index 8bff4c78..4e6524f4 100644 --- a/proto/bgp/attrs.c +++ b/proto/bgp/attrs.c @@ -1867,7 +1867,7 @@ bgp_free_pending_tx(struct bgp_channel *c) ASSERT_DIE(c->ptx); ASSERT_DIE(c->ptx->pool); - rfree(c->ptx->pool); + rp_free(c->ptx->pool); c->ptx = NULL; } diff --git a/proto/mrt/mrt.c b/proto/mrt/mrt.c index 82fd426a..92c19b63 100644 --- a/proto/mrt/mrt.c +++ b/proto/mrt/mrt.c @@ -590,7 +590,7 @@ mrt_table_dump_free(struct mrt_table_dump_state *s) config_del_obstacle(s->config); - rfree(s->pool); + rp_free(s->pool); } diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index 37f642d1..0eecb432 100644 --- a/proto/ospf/iface.c +++ b/proto/ospf/iface.c @@ -311,7 +311,7 @@ ospf_iface_remove(struct ospf_iface *ifa) ospf_iface_sm(ifa, ISM_DOWN); rem_node(NODE ifa); - rfree(ifa->pool); + rp_free(ifa->pool); } void diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c index b0fdc42f..2c73d251 100644 --- a/proto/ospf/neighbor.c +++ b/proto/ospf/neighbor.c @@ -120,7 +120,7 @@ ospf_neigh_down(struct ospf_neighbor *n) s_get(&(n->dbsi)); release_lsrtl(p, n); rem_node(NODE n); - rfree(n->pool); + rp_free(n->pool); OSPF_TRACE(D_EVENTS, "Neighbor %R on %s removed", rid, ifa->ifname); } diff --git a/proto/radv/radv.c b/proto/radv/radv.c index 434155dc..eb15f9cb 100644 --- a/proto/radv/radv.c +++ b/proto/radv/radv.c @@ -323,7 +323,7 @@ radv_iface_remove(struct radv_iface *ifa) rem_node(NODE ifa); - rfree(ifa->pool); + rp_free(ifa->pool); } static void |