From: Hal Rosenstock Subject: [PATCH opensm] osm_subnet.c: Fix resource leak neighbor parser ("subn_validate_neighbor" function) Date: Mon, 24 Feb 2014 10:05:49 -0500 Message-ID: <530B5FCD.3000700@dev.mellanox.co.il> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)" Cc: Dan Ben-Yosef , Vladimir Koushnir List-Id: linux-rdma@vger.kernel.org From: Dan Ben Yosef Fix resource leak after neighbor validation Signed-off-by: Dan Ben Yosef Reviewed-by: Vladimir Koushnir --- opensm/osm_subnet.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/opensm/osm_subnet.c b/opensm/osm_subnet.c index 77e486a..e9024ac 100644 --- a/opensm/osm_subnet.c +++ b/opensm/osm_subnet.c @@ -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: -- 1.7.8.2 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html