From 0084c9469ad8771931f605c1f5e47a6b3da8af8d Mon Sep 17 00:00:00 2001 From: Sven Stork Date: Wed, 7 Jun 2006 10:24:28 +0000 Subject: [PATCH] use correct free methode for additional allocated memory This commit was SVN r10241. --- ompi/mpi/c/sendrecv_replace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ompi/mpi/c/sendrecv_replace.c b/ompi/mpi/c/sendrecv_replace.c index ce1411c119..7a67f24f61 100644 --- a/ompi/mpi/c/sendrecv_replace.c +++ b/ompi/mpi/c/sendrecv_replace.c @@ -5,7 +5,7 @@ * Copyright (c) 2004-2005 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. - * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, + * Copyright (c) 2004-2006 High Performance Computing Center Stuttgart, * University of Stuttgart. All rights reserved. * Copyright (c) 2004-2005 The Regents of the University of California. * All rights reserved. @@ -99,7 +99,7 @@ int MPI_Sendrecv_replace(void * buf, int count, MPI_Datatype datatype, MPI_BYTE, source, recvtag, comm, &recv_status ); if (rc != MPI_SUCCESS) { if(packed_size > sizeof(recv_data)) - free(iov.iov_base); + MPI_Free_mem(iov.iov_base); OBJ_DESTRUCT(&convertor); OMPI_ERRHANDLER_RETURN(rc, comm, rc, FUNC_NAME); }