[ofa-general] [PATCH] osm: QoS - destroy qos_policy when destroying subnet

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Tue Aug 28 08:11:35 PDT 2007


Destroy p_subn->p_qos_policy when destroying subnet

Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
 opensm/opensm/osm_subnet.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/opensm/opensm/osm_subnet.c b/opensm/opensm/osm_subnet.c
index c847daf..58803e1 100644
--- a/opensm/opensm/osm_subnet.c
+++ b/opensm/opensm/osm_subnet.c
@@ -167,6 +167,8 @@ void osm_subn_destroy(IN osm_subn_t * const p_subn)
 	cl_ptr_vector_destroy(&p_subn->port_lid_tbl);
 	cl_map_remove_all(&(p_subn->opt.port_prof_ignore_guids));
 	cl_map_destroy(&(p_subn->opt.port_prof_ignore_guids));
+
+	osm_qos_policy_destroy(p_subn->p_qos_policy);
 }

 /**********************************************************************
-- 
1.5.1.4





More information about the general mailing list