From 6b823e36635bce7fae048ee1bd6fbff3f69c8685 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Wed, 23 Nov 2005 11:16:59 +0000 Subject: [PATCH] Remove a little extra memory that is no longer needed This commit was SVN r8246. --- ompi/mpi/f77/type_create_struct_f.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ompi/mpi/f77/type_create_struct_f.c b/ompi/mpi/f77/type_create_struct_f.c index f651e3b293..ed22670aaf 100644 --- a/ompi/mpi/f77/type_create_struct_f.c +++ b/ompi/mpi/f77/type_create_struct_f.c @@ -73,8 +73,7 @@ void mpi_type_create_struct_f(MPI_Fint *count, int i; OMPI_ARRAY_NAME_DECL(array_of_block_lengths); - c_type_old_array = malloc(*count * (sizeof(MPI_Datatype) + - sizeof(MPI_Aint))); + c_type_old_array = malloc(*count * sizeof(MPI_Datatype)); if (NULL == c_type_old_array) { *ierr = OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_NO_MEM, FUNC_NAME);