summaryrefslogtreecommitdiffstats
path: root/nest/rt-table.c
diff options
context:
space:
mode:
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r--nest/rt-table.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index 82acea0..7d8894d 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -184,6 +184,8 @@ do_rte_announce(struct announce_hook *a, net *net, rte *new, rte *old, ea_list *
p->out_filter && f_run(p->out_filter, &new, &tmpa, rte_update_pool, FF_FORCE_TMPATTR) > F_ACCEPT)
{
rte_trace_out(D_FILTERS, p, new, "filtered out");
+ if (new != new0)
+ rte_free(new);
new = NULL;
}
}