From 795cc5c1c4872045ad76dac34fef51ec3124eb47 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Thu, 15 Aug 2013 18:37:41 -0700 Subject: [PATCH] ofproto-dpif-xlate: Unreference handles on xbridge removal. Reported-by: Ben Pfaff Signed-off-by: Ethan Jackson [blp@nicira.com added one more hmap_destroy()] Signed-off-by: Ben Pfaff --- ofproto/ofproto-dpif-xlate.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c index 8be808827..e80ec8491 100644 --- a/ofproto/ofproto-dpif-xlate.c +++ b/ofproto/ofproto-dpif-xlate.c @@ -289,6 +289,12 @@ xlate_remove_ofproto(struct ofproto_dpif *ofproto) } hmap_remove(&xbridges, &xbridge->hmap_node); + mac_learning_unref(xbridge->ml); + mbridge_unref(xbridge->mbridge); + dpif_sflow_unref(xbridge->sflow); + dpif_ipfix_unref(xbridge->ipfix); + stp_unref(xbridge->stp); + hmap_destroy(&xbridge->xports); free(xbridge->name); free(xbridge); } -- 2.47.0