]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
CLI: Flushing tmp_linpool after every shown net.
authorMaria Matejka <mq@ucw.cz>
Sun, 22 Dec 2024 21:26:44 +0000 (22:26 +0100)
committerMaria Matejka <mq@ucw.cz>
Thu, 9 Jan 2025 09:08:27 +0000 (10:08 +0100)
There is no reason to keep the allocated objects through multiple nets.

nest/rt-show.c

index 3986da83dbffbad3d033386ec998d1d88123bf60..aa9209ca5f843a1033cad28da72aeda103688be5 100644 (file)
@@ -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);