summaryrefslogtreecommitdiff
path: root/zebra/zebra_rib.c
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2024-02-02 10:54:20 -0600
committerGitHub <noreply@github.com>2024-02-02 10:54:20 -0600
commit080054686fbfb30272106c5a18cf0f984cfb818f (patch)
treea81917c97a0b409683f617e35c6cb1bcef5bd4c8 /zebra/zebra_rib.c
parent22b79197bb32cfbe60ce76f63dc7ce93920328a3 (diff)
parent0d638b7437769775f32d54779ae17c62d7a46150 (diff)
Merge pull request #15216 from donaldsharp/zebra_opaque_mem_leak
zebra: Fix opaque memory leak in rare situation
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r--zebra/zebra_rib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index 9e89e32d5d..5b95d8668a 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -2693,6 +2693,7 @@ static void early_route_memory_free(struct zebra_early_route *ere)
if (ere->re_nhe)
zebra_nhg_free(ere->re_nhe);
+ zapi_re_opaque_free(ere->re->opaque);
XFREE(MTYPE_RE, ere->re);
XFREE(MTYPE_WQ_WRAPPER, ere);
}