summaryrefslogtreecommitdiff
path: root/zebra/rib.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-12-11 13:41:36 -0500
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-12-12 06:45:53 +0000
commit9103e2e9f76eb09efb396811ffa8aca3cd7b56bb (patch)
treee2a233007638136b49be9b943212edb47a978e12 /zebra/rib.h
parentde0e358b877ac9b595e7fb387a302c960a4c02d1 (diff)
zebra: The dplane_fpm_nl return path leaks memory
The route entry created when using a ctx to pass route entry data backup to the master pthread in zebra is being leaked. Prevent this from happening. Signed-off-by: Donald Sharp <sharpd@nvidia.com> (cherry picked from commit 7f9c5c7fa2d927033549a806fd9025a9459f22bc)
Diffstat (limited to 'zebra/rib.h')
-rw-r--r--zebra/rib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/rib.h b/zebra/rib.h
index a02a461e89..2e62148ea0 100644
--- a/zebra/rib.h
+++ b/zebra/rib.h
@@ -352,6 +352,8 @@ extern void _route_entry_dump(const char *func, union prefixconstptr pp,
union prefixconstptr src_pp,
const struct route_entry *re);
+void zebra_rib_route_entry_free(struct route_entry *re);
+
struct route_entry *
zebra_rib_route_entry_new(vrf_id_t vrf_id, int type, uint8_t instance,
uint32_t flags, uint32_t nhe_id, uint32_t table_id,