diff mbox

opensm/osm_ucast_ftree.c: Remove duplicate free in fabric_create_leaf_switch_array

Message ID 50BCC485.5060200@dev.mellanox.co.il (mailing list archive)
State Accepted
Delegated to: Alex Netes
Headers show

Commit Message

Hal Rosenstock Dec. 3, 2012, 3:25 p.m. UTC
Signed-off-by: Dan Ben-Yosef <danby@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
---
 opensm/osm_ucast_ftree.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

Comments

Alex Netes Jan. 30, 2013, 5:53 p.m. UTC | #1
Hi Hal,

On 10:25 Mon 03 Dec     , Hal Rosenstock wrote:
> 
> Signed-off-by: Dan Ben-Yosef <danby@mellanox.com>
> 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_ucast_ftree.c b/opensm/osm_ucast_ftree.c
index 532a29f..133fd4f 100644
--- a/opensm/osm_ucast_ftree.c
+++ b/opensm/osm_ucast_ftree.c
@@ -1689,7 +1689,6 @@  static int fabric_create_leaf_switch_array(IN ftree_fabric_t * p_ftree)
 	if (!p_ftree->leaf_switches) {
 		osm_log_v2(&p_ftree->p_osm->log, OSM_LOG_SYS, FILE_ID,
 			   "Fat-tree routing: Memory allocation failed\n");
-		free(all_switches_at_leaf_level);
 		res = -1;
 		goto Exit;
 	}