From patchwork Fri Mar 4 12:18:54 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Netes X-Patchwork-Id: 609071 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p24CJeNk022256 for ; Fri, 4 Mar 2011 12:19:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751999Ab1CDMTU (ORCPT ); Fri, 4 Mar 2011 07:19:20 -0500 Received: from mail.mellanox.co.il ([194.90.237.43]:60797 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752131Ab1CDMS7 (ORCPT ); Fri, 4 Mar 2011 07:18:59 -0500 Received: from Internal Mail-Server by MTLPINE2 (envelope-from alexne@mellanox.com) with SMTP; 4 Mar 2011 14:18:55 +0200 Received: from MTRCASDAG01.mtl.com (172.25.0.174) by MTLCAS02.mtl.com (10.0.8.72) with Microsoft SMTP Server (TLS) id 14.1.270.1; Fri, 4 Mar 2011 14:18:55 +0200 Received: from localhost (172.25.6.157) by MTRCASDAG01.mtl.com (172.25.0.174) with Microsoft SMTP Server (TLS) id 14.1.270.1; Fri, 4 Mar 2011 14:18:54 +0200 Date: Fri, 4 Mar 2011 14:18:54 +0200 From: Alex Netes To: linux-rdma Subject: [PATCH] opensm: fixed memory leak in multicast spanning tree Message-ID: <20110304121854.GD5577@calypso.voltaire.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [172.25.6.157] Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 04 Mar 2011 12:19:55 +0000 (UTC) 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; }