Skip to content

Commit 296d9ba

Browse files
author
David Wootton
committed
Fix memory leak in mca_spml_ucx_register
Coverity CID 1498721 Signed-off-by: David Wootton <dwootton@us.ibm.com>
1 parent c498706 commit 296d9ba

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)