From a35bb8453a40333bd45c1e22d6022d6e79f6a15d Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Thu, 19 May 2016 10:36:58 -0700 Subject: [PATCH] Unlock the mutex prior to destructing it. Thanks to Nicolas Joly for the report --- ompi/mca/rte/orte/rte_orte_component.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ompi/mca/rte/orte/rte_orte_component.c b/ompi/mca/rte/orte/rte_orte_component.c index 6ef19e2c52..1c6817b0bf 100644 --- a/ompi/mca/rte/orte/rte_orte_component.c +++ b/ompi/mca/rte/orte/rte_orte_component.c @@ -1,7 +1,7 @@ /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2012 Los Alamos National Security, LLC. All rights reserved. - * Copyright (c) 2014 Intel, Inc. All rights reserved. + * Copyright (c) 2014-2016 Intel, Inc. All rights reserved. * Copyright (c) 2015 Los Alamos National Security, LLC. All rights * reserved. * @@ -83,6 +83,7 @@ static int rte_orte_close(void) { opal_mutex_lock(&mca_rte_orte_component.lock); OPAL_LIST_DESTRUCT(&mca_rte_orte_component.modx_reqs); + opal_mutex_unlock(&mca_rte_orte_component.lock); OBJ_DESTRUCT(&mca_rte_orte_component.lock); return OMPI_SUCCESS;