diff mbox

[2/2] opensm/osm_sa_service_record.c: Fix minor memory leak

Message ID 4DAD9BE8.4040503@dev.mellanox.co.il (mailing list archive)
State Accepted
Delegated to: Alex Netes
Headers show

Commit Message

Hal Rosenstock April 19, 2011, 2:27 p.m. UTC
in sr_rcv_process_delete_method

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
---
 opensm/osm_sa_service_record.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Comments

Alex Netes April 21, 2011, 3:08 p.m. UTC | #1
On 10:27 Tue 19 Apr     , Hal Rosenstock wrote:
> 
> in sr_rcv_process_delete_method
> 
> Signed-off-by: Hal Rosenstock <hal@mellanox.com>
> ---

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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;
 	}