From: rahuel Date: Tue, 22 Jan 2008 12:49:55 +0000 (+0000) Subject: Debug malloc/new/free/delete X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6ac86c70fc9ec25907fc5ddc8f4d1d127c5e4f72;p=tools%2Fmedcoupling.git Debug malloc/new/free/delete --- diff --git a/src/ParaMEDMEM/test_AllToAllDEC.cxx b/src/ParaMEDMEM/test_AllToAllDEC.cxx index b273fc84a..eb787692e 100644 --- a/src/ParaMEDMEM/test_AllToAllDEC.cxx +++ b/src/ParaMEDMEM/test_AllToAllDEC.cxx @@ -81,10 +81,10 @@ int main(int argc, char** argv) { int ireq ; for ( ireq = 0 ; ireq < maxreq ; ireq++ ) { -// int * sendbuf = new int[datamsglength*size] ; + int * sendbuf = new int[datamsglength*size] ; cout << "test" << myrank << " ireq " << ireq << " RecvRequestIdsSize " << mpi_access->RecvRequestIdsSize() << endl ; - int * sendbuf = (int *) malloc( sizeof(int)*datamsglength*size) ; +// int * sendbuf = (int *) malloc( sizeof(int)*datamsglength*size) ; int j ; for ( j = 0 ; j < datamsglength*size ; j++ ) { sendbuf[j] = myrank*1000000 + ireq*1000 + j ; diff --git a/src/ParaMEDMEM/test_AllToAllvDEC.cxx b/src/ParaMEDMEM/test_AllToAllvDEC.cxx index 9a4366364..e65df75bb 100644 --- a/src/ParaMEDMEM/test_AllToAllvDEC.cxx +++ b/src/ParaMEDMEM/test_AllToAllvDEC.cxx @@ -87,8 +87,8 @@ int main(int argc, char** argv) { int ireq ; for ( ireq = 0 ; ireq < maxreq ; ireq++ ) { -// int * sendbuf = new int[datamsglength*size] ; - int * sendbuf = (int *) malloc( sizeof(int)*datamsglength*size) ; + int * sendbuf = new int[datamsglength*size] ; +// int * sendbuf = (int *) malloc( sizeof(int)*datamsglength*size) ; int j ; for ( j = 0 ; j < datamsglength*size ; j++ ) { sendbuf[j] = myrank*1000000 + ireq*1000 + j ;