Skip to content

Commit

Permalink
fabtests/multi_ep: Fix memory leak
Browse files Browse the repository at this point in the history
In setup_av_ep, hints->src_addr needs to be freed
before set as NULL;

Signed-off-by: Shi Jin <[email protected]>
  • Loading branch information
shijin-aws committed May 7, 2024
1 parent ee88250 commit 0bf67ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fabtests/functional/multi_ep.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ static int setup_av_ep(int idx)
hints = fi_dupinfo(fi);
fi_freeinfo(fi);

free(hints->src_addr);
hints->src_addr = NULL;
hints->src_addrlen = 0;

Expand Down

0 comments on commit 0bf67ce

Please sign in to comment.