Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit fdbe0a4

Browse files
author
Ralph Castain
committed
Unlock the mutex prior to destructing it.
Thanks to Nicolas Joly for the report (cherry picked from commit open-mpi/ompi@a35bb84)
1 parent 402abf9 commit fdbe0a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ompi/mca/rte/orte/rte_orte_component.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
33
* Copyright (c) 2012 Los Alamos National Security, LLC. All rights reserved.
4-
* Copyright (c) 2014 Intel, Inc. All rights reserved.
4+
* Copyright (c) 2014-2016 Intel, Inc. All rights reserved.
55
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
66
* reserved.
77
*
@@ -83,6 +83,7 @@ static int rte_orte_close(void)
8383
{
8484
opal_mutex_lock(&mca_rte_orte_component.lock);
8585
OPAL_LIST_DESTRUCT(&mca_rte_orte_component.modx_reqs);
86+
opal_mutex_unlock(&mca_rte_orte_component.lock);
8687
OBJ_DESTRUCT(&mca_rte_orte_component.lock);
8788

8889
return OMPI_SUCCESS;

0 commit comments

Comments
 (0)