diff mbox

opensm: fixed memory leak in multicast spanning tree

Message ID 20110304121854.GD5577@calypso.voltaire.com (mailing list archive)
State Accepted
Headers show

Commit Message

Alex Netes March 4, 2011, 12:18 p.m. UTC
None
diff mbox

Patch

diff --git a/opensm/osm_mcast_mgr.c b/opensm/osm_mcast_mgr.c
index df3af26..95b514c 100644
--- a/opensm/osm_mcast_mgr.c
+++ b/opensm/osm_mcast_mgr.c
@@ -751,6 +751,7 @@  static ib_api_status_t mcast_mgr_build_spanning_tree(osm_sm_t * sm,
 		OSM_LOG(sm->p_log, OSM_LOG_VERBOSE,
 			"MLID 0x%X has %u members - nothing to do\n",
 			mbox->mlid, num_ports);
+		drop_port_list(&port_list);
 		goto Exit;
 	}