Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Do not call malloc_no_memset in mc_snapshot
[simgrid.git] / src / mc / mc_memory.c
index bc0617a..72f51a9 100644 (file)
@@ -46,6 +46,6 @@ void MC_memory_init()
 #include "xbt_modinter.h"
 void MC_memory_exit(void)
 {
-  if (mc_heap)
+  if (mc_heap && mc_heap != std_heap)
     xbt_mheap_destroy(mc_heap);
 }