pml/ob1: plug a memory leak in mca_pml_ob1_component_fini()
Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp> (back-ported from commit open-mpi/ompi@fed33c1530)
Этот коммит содержится в:
родитель
959aeab5d9
Коммит
4bd5c538a2
@ -14,6 +14,8 @@
|
||||
* Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved
|
||||
* Copyright (c) 2013-2017 Los Alamos National Security, LLC. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2018 Research Organization for Information Science
|
||||
* and Technology (RIST). All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -309,8 +311,14 @@ int mca_pml_ob1_component_fini(void)
|
||||
if(OMPI_SUCCESS != (rc = mca_bml.bml_finalize()))
|
||||
return rc;
|
||||
|
||||
if(!mca_pml_ob1.enabled)
|
||||
if(!mca_pml_ob1.enabled) {
|
||||
if( NULL != mca_pml_ob1.allocator ) {
|
||||
(void)mca_pml_ob1.allocator->alc_finalize(mca_pml_ob1.allocator);
|
||||
mca_pml_ob1.allocator = NULL;
|
||||
}
|
||||
|
||||
return OMPI_SUCCESS; /* never selected.. return success.. */
|
||||
}
|
||||
mca_pml_ob1.enabled = false; /* not anymore */
|
||||
|
||||
/* return the static receive/send requests to the respective free list and
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user