From 33d7c52eed2e020f6c1d16a0ca7fcabdbadb6457 Mon Sep 17 00:00:00 2001 From: Rainer Keller Date: Wed, 6 Aug 2008 08:12:12 +0000 Subject: [PATCH] - Fix resource leak in case of error Coverity CID1066 This commit was SVN r19169. --- ompi/mca/dpm/orte/dpm_orte.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ompi/mca/dpm/orte/dpm_orte.c b/ompi/mca/dpm/orte/dpm_orte.c index 2b68ec976f..59688354ea 100644 --- a/ompi/mca/dpm/orte/dpm_orte.c +++ b/ompi/mca/dpm/orte/dpm_orte.c @@ -378,7 +378,8 @@ static int connect_accept ( ompi_communicator_t *comm, int root, new_group_pointer=ompi_group_allocate(rsize); if( NULL == new_group_pointer ) { - return MPI_ERR_GROUP; + rc = OMPI_ERR_OUT_OF_RESOURCE; + goto exit; } /* put group elements in the list */