opensm: fixed memory leak in multicast spanning tree
PATCH 1/1 opensm: fixed memory leak in multicast spanning tree
calculation
Reply-To:
When number of ports participating in a group is less than 2, port_list isn't freed.
--- opensm/osm_mcast_mgr.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
opensm/osm_mcast_mgr.c +1 -0
@@ -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; }
Signature · 6 lines
1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html