Hi Hal,

This patch fixes two similar memory leaks in fat-tree routing.
Please apply to ofed_1_2 and to master

Signed-off-by: Yevgeny Kliteynik <[EMAIL PROTECTED]>
---
osm/opensm/osm_ucast_ftree.c |    2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/osm/opensm/osm_ucast_ftree.c b/osm/opensm/osm_ucast_ftree.c
index 655a821..7b6a6a5 100644
--- a/osm/opensm/osm_ucast_ftree.c
+++ b/osm/opensm/osm_ucast_ftree.c
@@ -1552,6 +1552,7 @@ __osm_ftree_fabric_make_indexing(
/* Done assigning indexes to all the switches that are directly connected to the current switch - go to the next switch in the BFS queue */
   }
+   cl_list_destroy(&bfs_list);

   /* sort array of leaf switches by index */
   qsort(p_ftree->leaf_switches,     /* array */
@@ -2488,6 +2489,7 @@ __osm_ftree_rank_from_switch(
                             
&__osm_ftree_sw_tbl_element_create(p_remote_sw)->map_item);
      }
   }
+   cl_list_destroy(&bfs_list);
} /* __osm_ftree_rank_from_switch() */


--
1.4.4.1.GIT

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to