From: Gabriel Corona Date: Thu, 16 Jan 2014 14:14:00 +0000 (+0100) Subject: [mc] Free memory for object_info X-Git-Tag: v3_11~199^2~2^2~35^2~5 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/48ccc29a0111c1f98419d24784424e55bd48b269 [mc] Free memory for object_info --- diff --git a/src/mc/mc_global.c b/src/mc/mc_global.c index a44dec109e..f35ac68dff 100644 --- a/src/mc/mc_global.c +++ b/src/mc/mc_global.c @@ -195,7 +195,7 @@ void MC_free_object_info(mc_object_info_t* info) { xbt_dynar_free(&(*info)->global_variables); xbt_dict_free(&(*info)->types); xbt_free(info); - info = NULL; + *info = NULL; } /*************************************************************************/ @@ -1160,6 +1160,7 @@ void MC_modelcheck_liveness(){ void MC_exit(void) { xbt_free(mc_time); + MC_memory_exit(); //xbt_abort(); } diff --git a/src/mc/mc_memory.c b/src/mc/mc_memory.c index b10c81093f..110b848354 100644 --- a/src/mc/mc_memory.c +++ b/src/mc/mc_memory.c @@ -39,6 +39,9 @@ void MC_memory_init() #include "xbt_modinter.h" void MC_memory_exit(void) { + MC_free_object_info(&mc_binary_info); + MC_free_object_info(&mc_libsimgrid_info); + if (raw_heap) xbt_mheap_destroy(raw_heap); }