From: Hal Rosenstock Subject: [PATCH opensm] osm_subnet.c: Fix resource leak guid2mkey parser (guid validation function) Date: Mon, 24 Feb 2014 10:05:44 -0500 Message-ID: <530B5FC8.5060403@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 guid validation ("subn_validate_g2m") 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 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: -- 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