From: Maria Matejka Date: Sun, 22 Dec 2024 21:26:44 +0000 (+0100) Subject: CLI: Flushing tmp_linpool after every shown net. X-Git-Tag: v3.0.1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56be89911abbe1024b4db42bc5902f7aa583ee8f;p=thirdparty%2Fbird.git CLI: Flushing tmp_linpool after every shown net. There is no reason to keep the allocated objects through multiple nets. --- diff --git a/nest/rt-show.c b/nest/rt-show.c index 3986da83d..aa9209ca5 100644 --- a/nest/rt-show.c +++ b/nest/rt-show.c @@ -282,8 +282,9 @@ rt_show_cont(struct cli *c) rt_show_table(d); RT_FEED_WALK(&d->tab->req, f) - if (f->count_routes) - rt_show_net(d, f); + TMP_SAVED + if (f->count_routes) + rt_show_net(d, f); if (rt_export_feed_active(&d->tab->req)) rt_feeder_unsubscribe(&d->tab->req);