From patchwork Tue Apr 19 14:27:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 718291 X-Patchwork-Delegate: alexne@voltaire.com 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 p3JERjlA029363 for ; Tue, 19 Apr 2011 14:27:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752425Ab1DSO16 (ORCPT ); Tue, 19 Apr 2011 10:27:58 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:33130 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752349Ab1DSO15 (ORCPT ); Tue, 19 Apr 2011 10:27:57 -0400 Received: by wwa36 with SMTP id 36so7026287wwa.1 for ; Tue, 19 Apr 2011 07:27:55 -0700 (PDT) Received: by 10.227.36.209 with SMTP id u17mr4299316wbd.117.1303223275714; Tue, 19 Apr 2011 07:27:55 -0700 (PDT) Received: from [192.168.1.100] (c-71-192-10-85.hsd1.ma.comcast.net [71.192.10.85]) by mx.google.com with ESMTPS id l24sm3926379wbc.30.2011.04.19.07.27.53 (version=SSLv3 cipher=OTHER); Tue, 19 Apr 2011 07:27:54 -0700 (PDT) Message-ID: <4DAD9BE8.4040503@dev.mellanox.co.il> Date: Tue, 19 Apr 2011 10:27:52 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Alex Netes CC: "linux-rdma@vger.kernel.org" Subject: [PATCH 2/2] opensm/osm_sa_service_record.c: Fix minor memory leak 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]); Tue, 19 Apr 2011 14:28:12 +0000 (UTC) in sr_rcv_process_delete_method Signed-off-by: Hal Rosenstock --- opensm/osm_sa_service_record.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/opensm/osm_sa_service_record.c b/opensm/osm_sa_service_record.c index 72bcbdc..ae002ad 100644 --- a/opensm/osm_sa_service_record.c +++ b/opensm/osm_sa_service_record.c @@ -644,6 +644,7 @@ static void sr_rcv_process_delete_method(osm_sa_t * sa, IN osm_madw_t * p_madw) OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 2413: " "Unable to acquire Service record\n"); osm_sa_send_error(sa, p_madw, IB_SA_MAD_STATUS_NO_RESOURCES); + osm_svcr_delete(p_svcr); goto Exit; }