Skip to content

Commit 4e8845e

Browse files
author
David Wootton
committed
Fix missing lock release in oshmem_proc_group_create
Coverity CID 1498740 Signed-off-by: David Wootton <dwootton@us.ibm.com>
1 parent 219956d commit 4e8845e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

oshmem/proc/proc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ oshmem_group_t* oshmem_proc_group_create(int pe_start, int pe_stride, int pe_siz
212212
/* allocate an array */
213213
group->proc_vpids = (opal_vpid_t *) malloc(pe_size * sizeof(group->proc_vpids[0]));
214214
if (NULL == group->proc_vpids) {
215+
OPAL_THREAD_UNLOCK(&oshmem_proc_lock);
215216
return NULL;
216217
}
217218

0 commit comments

Comments
 (0)