Skip to contentSkip to conversation

osm_subnet.c: Fix resource leak neighbor parser ("subn_validate_neighbor" function)

PATCH New Hal Rosenstock 1 participant 1 message Feb 24, 2014 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 osm_subnet.c: Fix resource leak neighbor parser ("subn_validate_neighbor" function)

From: Dan Ben Yosef <[email protected]>

Fix resource leak after neighbor validation

---
 opensm/osm_subnet.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
opensm/osm_subnet.c +1 -0
index 77e486a..e9024ac 100644
@@ -1051,6 +1051,7 @@ static void subn_validate_neighbor(osm_subn_t *p_subn)
 					"guid:0x%016" PRIx64 " port:%u\n",
 					p_item->guid, p_item->portnum);
 		}
+		free(p_item);
 	}
 
 Exit:
Signature · 6 lines
1.7.8.2

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html