hello list, while trying out libfabric for a new application i stumbled across something that looks like a memory leak in vrb_create_ep. it seems that the rdma_addrinfo there isn't properly freed after successful rdma_resolve_addr, but it *is* freed in the error path. the attached patch fixes the memory leak for me, but i'm not sure about interactions with the rest of the system.
greetings,
diff --git a/prov/verbs/src/fi_verbs.c b/prov/verbs/src/fi_verbs.c index 9ddb58cf4..a667adfd4 100644 --- a/prov/verbs/src/fi_verbs.c +++ b/prov/verbs/src/fi_verbs.c @@ -243,6 +243,7 @@ int vrb_create_ep(const struct fi_info *hints, enum rdma_port_space ps, "dst addr", rai->ai_dst_addr); goto err2; } + rdma_freeaddrinfo(rai); return 0; err2: rdma_destroy_id(*id);
_______________________________________________ ofiwg mailing list [email protected] https://lists.openfabrics.org/mailman/listinfo/ofiwg
