Fix a memory leak in evpn_binding_run routine removing a logical switch
belonging to the EVPN domain.
Fixes: dbcd3e1081cf ("controller: Pair remote VTEPs with datapaths.")
Signed-off-by: Lorenzo Bianconi <[email protected]>
---
controller/evpn-binding.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/controller/evpn-binding.c b/controller/evpn-binding.c
index 12c0da4de..b176706c3 100644
--- a/controller/evpn-binding.c
+++ b/controller/evpn-binding.c
@@ -147,6 +147,7 @@ evpn_binding_run(const struct evpn_binding_ctx_in *b_ctx_in,
uuidset_insert(b_ctx_out->removed_multicast_groups,
&mc_group->flow_uuid);
hmap_remove(b_ctx_out->multicast_groups, &mc_group->hmap_node);
+ hmapx_destroy(&mc_group->bindings);
free(mc_group);
}
--
2.51.0
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev