X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5b3677b425b9cc6949c1573d59ac772540cbf4b2..299c2d7814cebfdfdd05c1225b67ec2943900ba1:/src/mc/mc_memory.c diff --git a/src/mc/mc_memory.c b/src/mc/mc_memory.c index aa38112b9b..f734ec70ad 100644 --- a/src/mc/mc_memory.c +++ b/src/mc/mc_memory.c @@ -30,7 +30,7 @@ void MC_memory_init() raw_heap = NULL; #else /* Create the second region a page after the first one ends + safety gap */ - raw_heap = xbt_mheap_new(-1, (char*)(std_heap) + STD_HEAP_SIZE + getpagesize()); + raw_heap = xbt_mheap_new(-1, (char*)(std_heap) + STD_HEAP_SIZE + xbt_pagesize); xbt_assert(raw_heap != NULL); #endif } @@ -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); }