Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
merge conflicts
[simgrid.git] / src / xbt / mmalloc / mm_legacy.c
index 216babd..0d054b4 100644 (file)
@@ -74,8 +74,7 @@ void *realloc(void *p, size_t s)
     else
       ret = mmalloc(mdp, s);
   } else {
-    if (p)
-      mfree(mdp, p);
+    mfree(mdp, p);
   }
   UNLOCK(mdp);
 
@@ -363,6 +362,7 @@ int mmalloc_compare_mdesc(struct mdesc *mdp1, struct mdesc *mdp2){
            XBT_DEBUG("Different size of a large cluster");
            return 1;
          }else{
+           XBT_DEBUG("Block : %Zu", i);
            if(memcmp(addr_block1, addr_block2, (mdp1->heapinfo[i].busy.info.size * BLOCKSIZE)) != 0){
              XBT_DEBUG("Different data in block %Zu", i);
              return 1;