[ofa-general] [PATCH] opensm/osm_ucast_cache: fixing coredump
    Yevgeny Kliteynik 
    kliteyn at dev.mellanox.co.il
       
    Mon Nov  3 07:05:56 PST 2008
    
    
  
Following the recent changes in ports allocation - fixing core dump.
Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
 opensm/opensm/osm_ucast_cache.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/opensm/opensm/osm_ucast_cache.c b/opensm/opensm/osm_ucast_cache.c
index b142a14..13dee11 100644
--- a/opensm/opensm/osm_ucast_cache.c
+++ b/opensm/opensm/osm_ucast_cache.c
@@ -135,8 +135,6 @@ static void __cache_sw_destroy(cache_switch_t * p_sw)
 		free(p_sw->lft);
 	if (p_sw->hops)
 		free(p_sw->hops);
-	if (p_sw->ports)
-		free(p_sw->ports);
 	free(p_sw);
 }
-- 
1.5.1.4
    
    
More information about the general
mailing list