diff mbox

opensm/osm_pkey_mgr.c: fixing small memory leak

Message ID 4C86572E.5080105@mellanox.co.il (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Yevgeny Kliteynik Sept. 7, 2010, 3:15 p.m. UTC
None
diff mbox

Patch

diff --git a/opensm/opensm/osm_pkey_mgr.c b/opensm/opensm/osm_pkey_mgr.c
index 1e98c82..612130c 100644
--- a/opensm/opensm/osm_pkey_mgr.c
+++ b/opensm/opensm/osm_pkey_mgr.c
@@ -118,6 +118,7 @@  pkey_mgr_process_physical_port(IN osm_log_t * p_log,
 				cl_ntoh16(ib_pkey_get_base(pkey)),
 				cl_ntoh64(osm_node_get_node_guid(p_node)),
 				osm_physp_get_port_num(p_physp));
+			free(p_pending);
 			return;
 		}
 		cl_qlist_insert_head(&p_pkey_tbl->pending,