# Re: \[PATCH 1/1\] RDMA/cma: Fix rdma\_resolve\_route memory leak

- From: Gerd Rausch \<hidden\>
- Date: 2021-06-25 16:28:09 
- List: linux-rdma
- Page: https://ratatoskr.run/linux-rdma/2021/06/1426218
- Thread: https://ratatoskr.run/linux-rdma/2021/06/1425228/t.md

```text
Hi Jason,

On 25/06/2021 08.03, Jason Gunthorpe wrote:
> On Thu, Jun 24, 2021 at 11:55:31AM -0700, Gerd Rausch wrote:
>> Fix a memory leak when "rmda_resolve_route" is called
>> more than once on the same "rdma_cm_id".
>>
>> Signed-off-by: Gerd Rausch <redacted>
>> ---
>>  drivers/infiniband/core/cma.c | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> I wondered for a while if it would be better to clear this in
> cma_query_handler(), but it seems this is OK
> 
> Applied to for-next
> 

Thank you, I appreciate it.

  Gerd
```
