From d312823dc3f5b95d6f74bfef503637257a9c10ba Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Tue, 26 Aug 2014 13:27:22 +0200 Subject: [PATCH] [mc] Revert to previous heap scanning method There are issues with the current version. --- src/mc/mc_diff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mc/mc_diff.c b/src/mc/mc_diff.c index 988d8b5706..377e3cbf26 100644 --- a/src/mc/mc_diff.c +++ b/src/mc/mc_diff.c @@ -445,7 +445,7 @@ int mmalloc_compare_heap(mc_snapshot_t snapshot1, mc_snapshot_t snapshot2) malloc_info* heapinfo2 = mc_snapshot_read_region(&heapinfos2[i1], heap_region2, &heapinfo_temp2, sizeof(malloc_info)); if (heapinfo1->type == MMALLOC_TYPE_FREE || heapinfo1->type == MMALLOC_TYPE_HEAPINFO) { /* Free block */ - i1 += heapinfo1->free_block.size; + i1 ++; continue; } @@ -596,7 +596,7 @@ int mmalloc_compare_heap(mc_snapshot_t snapshot1, mc_snapshot_t snapshot2) malloc_info* heapinfo2b = mc_snapshot_read_region(&heapinfos2[i2], heap_region2, &heapinfo_temp2b, sizeof(malloc_info)); if (heapinfo2b->type == MMALLOC_TYPE_FREE || heapinfo2b->type == MMALLOC_TYPE_HEAPINFO) { - i2 += heapinfo2b->free_block.size; + i2 ++; continue; } -- 2.20.1