Some minor valgrind-inspired cleanups: fix some memory leaks
This commit was SVN r20539.
Этот коммит содержится в:
родитель
44092c6a21
Коммит
661690c273
ompi/runtime
@ -10,7 +10,7 @@
|
||||
* University of Stuttgart. All rights reserved.
|
||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 2006-2007 Cisco Systems, Inc. All rights reserved.
|
||||
* Copyright (c) 2006-2009 Cisco Systems, Inc. All rights reserved.
|
||||
* Copyright (c) 2006 Los Alamos National Security, LLC. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2006 University of Houston. All rights reserved.
|
||||
@ -338,6 +338,11 @@ int ompi_mpi_finalize(void)
|
||||
if (OMPI_SUCCESS != (ret = mca_rcache_base_close())) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Free some OMPI MCA string params */
|
||||
if (NULL != ompi_mpi_show_mca_params_file) {
|
||||
free(ompi_mpi_show_mca_params_file);
|
||||
}
|
||||
|
||||
/* Leave the RTE */
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
* University of Stuttgart. All rights reserved.
|
||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 2006-2008 Cisco Systems, Inc. All rights reserved.
|
||||
* Copyright (c) 2006-2009 Cisco Systems, Inc. All rights reserved.
|
||||
* Copyright (c) 2007 Los Alamos National Security, LLC. All rights
|
||||
* reserved.
|
||||
* $COPYRIGHT$
|
||||
@ -176,6 +176,7 @@ int ompi_mpi_register_params(void)
|
||||
}
|
||||
opal_argv_free(args);
|
||||
}
|
||||
free(param);
|
||||
}
|
||||
|
||||
/* File to use when dumping the parameters */
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user