summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-08-31 11:58:27 +0200
committerMaria Matejka <mq@ucw.cz>2022-09-01 18:46:40 +0200
commit7450eea071941c683da158d6dfe8365288eed5b8 (patch)
tree2c3c7a8251870b0623e89ec0b9ce7deb9000d042 /proto
parent83ceb91b50ae75ee5509faa74e2f6d4bdcf78505 (diff)
Miscellaneous refactoring
Diffstat (limited to 'proto')
-rw-r--r--proto/bgp/attrs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c
index 2543ee73..84a0b023 100644
--- a/proto/bgp/attrs.c
+++ b/proto/bgp/attrs.c
@@ -1977,6 +1977,12 @@ bgp_out_table_export_start(struct rt_exporter *re, struct rt_export_request *req
return hook;
}
+static void
+bgp_out_table_export_done(struct rt_export_hook *hook)
+{
+ rfree(hook->pool);
+}
+
void
bgp_setup_out_table(struct bgp_channel *c)
{
@@ -1985,6 +1991,7 @@ bgp_setup_out_table(struct bgp_channel *c)
c->prefix_exporter = (struct rt_exporter) {
.addr_type = c->c.table->addr_type,
.start = bgp_out_table_export_start,
+ .done = bgp_out_table_export_done,
};
init_list(&c->prefix_exporter.hooks);