Skip to contentSkip to conversation

rdma/cma: fixed resource leak in case of an error in udaddy

PATCH In review Dotan Barak 2 participants 2 messages Oct 25, 2011 – Oct 26, 2011 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rdma/cma: fixed resource leak in case of an error in udaddy

Fixed a resource leak in case of an error level in the udaddy example.

---
 examples/udaddy.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
examples/udaddy.c +1 -1
index 637306a..1534df5 100644
@@ -547,7 +547,7 @@ static int run_server(void)
 	ret = rdma_bind_addr(listen_id, test.src_addr);
 	if (ret) {
 		perror("udaddy: bind address failed");
-		return ret;
+		goto out;
 	}
 
 	ret = rdma_listen(listen_id, 0);
Signature · 6 lines
1.7.4.1

--
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

A message that is not in the archive (sent off-list or not yet received): 201110251025.04409.dotanb-g2bIKuvJtcQanlnWow0HJg@public.gmane.org