1
1
Jeff Squyres 5cbf975955 Fix a confusing situation, and eliminate a potential memory leak.
MPI-1 does not say whether an errorhandler obtained via
MPI_ERRHANDLER_GET (or MPI_COMM_GET_ERRHANDLER or ...) needs to be
ERRHANDLER_FREE'd or not.  I don't think it does, but some users will
probably disagree.  So per the lengthy comment in
src/mpi/c/comm_get_errhandler.c, we increment the refcount whenever
GET is invoked.

This can lead to a memory leak in FINALIZE if the user GET's some
intrinsic error handlers -- we'll increment the refcount, which means
that it will never get to 0 during FINALIZE like it should.  So add a
little extra logic to ensure that they are OMPI_OBJ_DESTROY'ed during
FINALIZE like they should be.

This commit was SVN r3661.
2004-11-26 22:11:22 +00:00
..

/*
 * Copyright (c) 2004-2005 The Trustees of Indiana University.
 *                         All rights reserved.
 * Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
 *                         All rights reserved.
 * $COPYRIGHT$
 * 
 * Additional copyrights may follow
 * 
 * $HEADER$
 */
/** @mainpage

@section mainpage_introduction Introduction

This is the introduction.
This is the introduction.
This is the introduction.
This is the introduction.
This is the introduction.
This is the introduction.
This is the introduction.

@section main_install Installation
 
This is the installation section.
This is the installation section.
This is the installation section.
This is the installation section.
This is the installation section.
This is the installation section.
This is the installation section.

*/