X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/23954e6db4f5a05de23442ca084c05a7e7d170d0..82726a76d5024b24458055347e0075e96b2fc48c:/src/smpi/smpi_bench.c diff --git a/src/smpi/smpi_bench.c b/src/smpi/smpi_bench.c index a5d2335d21..d105b337a3 100644 --- a/src/smpi/smpi_bench.c +++ b/src/smpi/smpi_bench.c @@ -727,7 +727,7 @@ void smpi_initialize_global_memory_segments(){ } smpi_privatisation_regions = (smpi_privatisation_region_t) malloc( - sizeof(struct s_smpi_privatisation_region) * sizeof(int)); + xbt_malloc((smpi_process_count()) * sizeof(struct s_smpi_privatisation_region)); for (i=0; i< SIMIX_process_count(); i++){ //create SIMIX_process_count() mappings of this size with the same data inside