Commit 28b58a0de6 for frr

commit 28b58a0de64d39a334419669fe66edd63a8ab5c4
Author: Nageswara Soma <nsoma@cisco.com>
Date:   Mon Jun 15 12:30:07 2026 -0700

    zebra: fix unhashed NHG leak in rib_re_nhg_free

    Free the full nexthop group entry with
    zebra_nhg_free() instead of only releasing the
    nexthop list, which left the NHG wrapper leaked.

    Signed-off-by: Nageswara Soma <nsoma@cisco.com>

diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index 453c507bbe..cd75ea3e39 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -2624,8 +2624,8 @@ static void rib_re_nhg_free(struct route_entry *re)
 	if (re->nhe && re->nhe_id) {
 		assert(re->nhe->id == re->nhe_id);
 		route_entry_update_nhe(re, NULL);
-	} else if (re->nhe && re->nhe->nhg.nexthop)
-		nexthops_free(re->nhe->nhg.nexthop);
+	} else if (re->nhe)
+		zebra_nhg_free(re->nhe);

 	/*
 	 * Clean up nhe_received if it wasn't already cleared by