From 8641a794f83239e3e6f4963bc5e76c6ed398dad5 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Wed, 13 Jul 2005 21:27:12 +0000 Subject: [PATCH] They get freed in just one place. It's useless to have a macro for that. This commit was SVN r6465. --- ompi/datatype/dt_args.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ompi/datatype/dt_args.c b/ompi/datatype/dt_args.c index 5fb721aec5..b22e23f652 100644 --- a/ompi/datatype/dt_args.c +++ b/ompi/datatype/dt_args.c @@ -55,9 +55,6 @@ typedef struct __dt_args { (PDATA)->args = (void*)pArgs; \ } while(0) -#define FREE_ARGS(PDATA) \ -if( (PDATA)->args != NULL ) free( (PDATA)->args ); - int32_t ompi_ddt_set_args( ompi_datatype_t* pData, int32_t ci, int32_t** i, int32_t ca, MPI_Aint* a, @@ -236,7 +233,8 @@ int32_t ompi_ddt_release_args( ompi_datatype_t* pData ) OBJ_RELEASE( pArgs->d[i] ); } } - FREE_ARGS( pData ); + free( pData->args ); + pData->args = NULL; return OMPI_SUCCESS; }