1
1

Some minor valgrind-inspired cleanups: fix some memory leaks

This commit was SVN r20539.
Этот коммит содержится в:
Jeff Squyres 2009-02-13 03:40:53 +00:00
родитель 44092c6a21
Коммит 661690c273
2 изменённых файлов: 8 добавлений и 2 удалений

@ -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 */