Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : fix memory leak
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Sun, 10 Feb 2013 12:48:46 +0000 (13:48 +0100)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Sat, 16 Mar 2013 17:30:54 +0000 (18:30 +0100)
src/xbt/mmalloc/mfree.c

index d380809..f3d9baa 100644 (file)
@@ -110,7 +110,6 @@ void mfree(struct mdesc *mdp, void *ptr)
           abort();
         }
         mdp->heapinfo[block+it].type = -1;
-        mdp->heapinfo[block+it].busy_block.ignore = 0;
       }
     }
 
@@ -168,6 +167,7 @@ void mfree(struct mdesc *mdp, void *ptr)
       if(mdp->heapinfo[block].busy_frag.ignore[frag_nb] == 1)
         MC_remove_ignore_heap(ptr, mdp->heapinfo[block].busy_frag.frag_size[frag_nb]);
     }
+
     /* Set size used in the fragment to -1 */
     mdp->heapinfo[block].busy_frag.frag_size[frag_nb] = -1;
     mdp->heapinfo[block].busy_frag.ignore[frag_nb] = 0;