Skip to content

Commit e4cedad

Browse files
authored
Merge pull request #11149 from drwootton/spml_ucx_leak
Fix memory leak in mca_spml_ucx_register: Coverity CID 1498721
2 parents 948de6e + 296d9ba commit e4cedad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oshmem/mca/spml/ucx/spml_ucx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ sshmem_mkey_t *mca_spml_ucx_register(void* addr,
709709
if (MEMHEAP_SEG_INVALID == segno) {
710710
SPML_UCX_ERROR("mca_spml_ucx_register failed because of invalid "
711711
"segment number: %d\n", segno);
712-
return NULL;
712+
goto error_out;
713713
}
714714
mem_seg = memheap_find_seg(segno);
715715

0 commit comments

Comments
 (0)