Merge branch 'sb/test-bitmap-free-at-end'
authorJunio C Hamano <gitster@pobox.com>
Mon, 1 Jun 2015 19:45:21 +0000 (12:45 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Jun 2015 19:45:21 +0000 (12:45 -0700)
An earlier leakfix to bitmap testing code was incomplete.

* sb/test-bitmap-free-at-end:
test_bitmap_walk: free bitmap with bitmap_free

pack-bitmap.c
index e5abb8a0460d49b603e29d1afe02db89fede8d24..2b3ff2379747f7931167d3099c624113bf032536 100644 (file)
@@ -985,7 +985,7 @@ void test_bitmap_walk(struct rev_info *revs)
        else
                fprintf(stderr, "Mismatch!\n");
 
-       free(result);
+       bitmap_free(result);
 }
 
 static int rebuild_bitmap(uint32_t *reposition,