[openib-general] [PATCH] OpenSM - Multiple Initializations of objects on startup
Yael Kalka
yael at mellanox.co.il
Mon Aug 9 05:34:24 PDT 2004
Committed to OpenSM - gen1.
Thanks,
Yael
-----Original Message-----
From: Jan Daley [mailto:jdaley at systemfabricworks.com]
Sent: Saturday, August 07, 2004 12:09 AM
To: openib-general at openib.org
Subject: [openib-general] [PATCH] OpenSM - Multiple Initializations of
objects on startup
Hi,
osm_subn_construct and cl_map_init(&(p_subn->opt.port_pro_ignore_guids),
10) are being called twice. This causes some memory leaks.
Index: opensm/osm_subnet.c
===================================================================
--- opensm/osm_subnet.c (revision 590)
+++ opensm/osm_subnet.c (working copy)
@@ -112,7 +112,6 @@
cl_qmap_init( &p_subn->rtr_guid_tbl );
cl_qmap_init( &p_subn->prtn_pkey_tbl );
cl_qmap_init( &p_subn->mgrp_mlid_tbl );
- cl_map_init(&(p_subn->opt.port_pro_ignore_guids), 10);
cl_list_construct( &p_subn->new_ports_list );
cl_list_init( &p_subn->new_ports_list, 10 );
}
@@ -200,8 +199,6 @@
{
cl_status_t status;
- osm_subn_construct( p_subn );
-
status = cl_ptr_vector_init( &p_subn->node_lid_tbl,
OSM_SUBNET_VECTOR_MIN_SIZE,
OSM_SUBNET_VECTOR_GROW_SIZE );
Jan Daley
System Fabric Works
(512) 343-6101 x 13
_______________________________________________
openib-general mailing list
openib-general at openib.org
http://openib.org/mailman/listinfo/openib-general
To unsubscribe, please visit
http://openib.org/mailman/listinfo/openib-general
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20040809/ef3f5844/attachment.html>
More information about the general
mailing list