summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-05-13 14:05:55 -0700
committerJunio C Hamano <gitster@pobox.com>2015-05-13 14:05:56 -0700
commit071e93a14844f474d313eec1a035816192616889 (patch)
tree8497ca19b7f4d842d255a35a2f96953a3668b387
parent36ec67d1ea1fc1680fd4bb84c05bac5ba45a0862 (diff)
parentf86a3747abc742359397e3050b1fbef297415de5 (diff)
downloadgit-071e93a14844f474d313eec1a035816192616889.tar.gz
Merge branch 'sb/test-bitmap-free-at-end' into maint
* sb/test-bitmap-free-at-end: pack-bitmap.c: fix a memleak
-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,