summaryrefslogtreecommitdiff
path: root/pack-bitmap.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2015-05-05 21:00:28 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-05-05 21:00:28 -0700
commitb9032b284fb46f3e4994e6dc3cbb0c4993cdd3fb (patch)
tree9aa152a294d5276859bfa6cf3da027aedaacaf29 /pack-bitmap.c
parentMerge branch 'ld/p4-filetype-detection' (diff)
parentpack-bitmap.c: fix a memleak (diff)
downloadtgif-b9032b284fb46f3e4994e6dc3cbb0c4993cdd3fb.tar.xz
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,