From: Augustin Degomme Date: Sat, 4 Nov 2017 10:47:54 +0000 (+0100) Subject: fix mismatched new[]/free X-Git-Tag: v3.18~300^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/749851ef42abca0a569ff59e8a8884fbac58f862?hp=21ff871b376f66fa4b2477042fe5ef5fbf42a6fe fix mismatched new[]/free --- diff --git a/src/smpi/internals/smpi_global.cpp b/src/smpi/internals/smpi_global.cpp index 0a66fcfc54..6ea962541c 100644 --- a/src/smpi/internals/smpi_global.cpp +++ b/src/smpi/internals/smpi_global.cpp @@ -394,7 +394,7 @@ void smpi_global_destroy() xbt_os_timer_free(global_timer); } - xbt_free(index_to_process_data); + delete[] index_to_process_data; if(smpi_privatize_global_variables == SMPI_PRIVATIZE_MMAP) smpi_destroy_global_memory_segments(); smpi_free_static();