Skip to content

Commit add202e

Browse files
authored
Merge pull request ofiwg#541 from raffenet/fix-rc_pingpong
rc_pingpong: Free info handle before reuse
2 parents ca04ee7 + 6bf9f70 commit add202e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ported/libibverbs/rc_pingpong.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ static int pp_accept_ctx(struct pingpong_context *ctx)
217217
FT_PRINTERR("fi_endpoint", rc);
218218
return 1;
219219
}
220+
fi_freeinfo(entry.info);
220221

221222
/* Create event queue */
222223
if (pp_cq_create(ctx)) {
@@ -266,7 +267,6 @@ static int pp_accept_ctx(struct pingpong_context *ctx)
266267
}
267268
printf("Connection accepted\n");
268269

269-
fi_freeinfo(entry.info);
270270
return 0;
271271
}
272272

0 commit comments

Comments
 (0)