summaryrefslogtreecommitdiff
path: root/pack-bitmap.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-05-05 21:00:28 -0700
committerJunio C Hamano <gitster@pobox.com>2015-05-05 21:00:28 -0700
commitb9032b284fb46f3e4994e6dc3cbb0c4993cdd3fb (patch)
tree9aa152a294d5276859bfa6cf3da027aedaacaf29 /pack-bitmap.c
parenta9d00b662f0fdb88434b85d2bd55ebfee227e0d7 (diff)
parentf86a3747abc742359397e3050b1fbef297415de5 (diff)
downloadgit-b9032b284fb46f3e4994e6dc3cbb0c4993cdd3fb.tar.gz
Merge branch 'sb/test-bitmap-free-at-end'
* sb/test-bitmap-free-at-end: pack-bitmap.c: fix a memleak
Diffstat (limited to 'pack-bitmap.c')
-rw-r--r--pack-bitmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pack-bitmap.c b/pack-bitmap.c
index 365f9d92ed..62a98cc119 100644
--- a/pack-bitmap.c
+++ b/pack-bitmap.c
@@ -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,