Skip to content

Commit

Permalink
MM/POSIX: Fix error flow for uct_posix_test_mem()
Browse files Browse the repository at this point in the history
  • Loading branch information
yosefe committed Dec 3, 2019
1 parent 721ab58 commit a01899a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uct/sm/mm/posix/mm_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ uct_posix_mem_alloc(uct_md_h tl_md, size_t *length_p, void **address_p,

err_close:
close(fd);
if (!posix_config->use_proc_link) {
if (!(seg->seg_id & UCT_POSIX_SEG_FLAG_PROCFS)) {
uct_posix_unlink(md, seg->seg_id);
}
err_free_seg:
Expand Down

0 comments on commit a01899a

Please sign in to comment.