From e89b84e7dc1848f52242c4b3134b21333a85c6d0 Mon Sep 17 00:00:00 2001 From: degomme Date: Mon, 15 Aug 2016 11:21:52 +0200 Subject: [PATCH] leaks -- --- src/smpi/smpi_global.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/smpi/smpi_global.cpp b/src/smpi/smpi_global.cpp index ad0791ecc4..ce2d316803 100644 --- a/src/smpi/smpi_global.cpp +++ b/src/smpi/smpi_global.cpp @@ -74,6 +74,8 @@ int process_count = 0; int smpi_universe_size = 0; int* index_to_process_data = nullptr; extern double smpi_total_benched_time; +extern xbt_dict_t smpi_type_keyvals; +extern xbt_dict_t smpi_comm_keyvals; xbt_os_timer_t global_timer; MPI_Comm MPI_COMM_WORLD = MPI_COMM_UNINITIALIZED; MPI_Errhandler *MPI_ERRORS_RETURN = nullptr; @@ -639,6 +641,10 @@ void smpi_global_destroy() } xbt_free(index_to_process_data); + if(smpi_type_keyvals!=nullptr) + xbt_dict_free(&smpi_type_keyvals); + if(smpi_comm_keyvals!=nullptr) + xbt_dict_free(&smpi_comm_keyvals); if(smpi_privatize_global_variables) smpi_destroy_global_memory_segments(); smpi_free_static(); -- 2.20.1