diff mbox

[opensm] osm_subnet.c: Fix resource leak guid2mkey parser (guid validation function)

Message ID 530B5FC8.5060403@dev.mellanox.co.il (mailing list archive)
State Accepted
Delegated to: Hal Rosenstock
Headers show

Commit Message

Hal Rosenstock Feb. 24, 2014, 3:05 p.m. UTC
From: Dan Ben Yosef <danby@dev.mellanox.co.il>

Fix resource leak after guid validation ("subn_validate_g2m")

Signed-off-by: Dan Ben Yosef <danby@dev.mellanox.co.il>
Reviewed-by: Vladimir Koushnir <vladimirk@mellanox.com>
---
 opensm/osm_subnet.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/opensm/osm_subnet.c b/opensm/osm_subnet.c
index db8c2a0..77e486a 100644
--- a/opensm/osm_subnet.c
+++ b/opensm/osm_subnet.c
@@ -966,6 +966,7 @@  static void subn_validate_g2m(osm_subn_t *p_subn)
 					"guid:0x%016" PRIx64 "\n",
 					p_item->guid);
 		}
+		free(p_item);
 	}
 
 Exit: