Merge branch 'sb/test-bitmap-free-at-end' into maint
authorJunio C Hamano <gitster@pobox.com>
Wed, 13 May 2015 21:05:55 +0000 (14:05 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 May 2015 21:05:56 +0000 (14:05 -0700)
* sb/test-bitmap-free-at-end:
  pack-bitmap.c: fix a memleak

pack-bitmap.c

index 365f9d9..62a98cc 100644 (file)
@@ -986,6 +986,8 @@ void test_bitmap_walk(struct rev_info *revs)
                fprintf(stderr, "OK!\n");
        else
                fprintf(stderr, "Mismatch!\n");
+
+       free(result);
 }
 
 static int rebuild_bitmap(uint32_t *reposition,