Skip to content

Commit 1ea2801

Browse files
authored
Merge pull request #11199 from drwootton/proc_missing_unlock
Fix missing lock release in oshmem_proc_group_create: Coverity CID 1498740
2 parents 0f13840 + 4e8845e commit 1ea2801

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)