summaryrefslogtreecommitdiffstats
path: root/pack-bitmap.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2015-03-30 18:22:10 -0700
committerJunio C Hamano <gitster@pobox.com>2015-04-12 21:45:27 -0700
commitf86a3747abc742359397e3050b1fbef297415de5 (patch)
tree238f1c211c58252c55e5ffb3fa0e16279467c79c /pack-bitmap.c
parent52735a689270bb1de94eb3de198594b36caed9bb (diff)
downloadgit-f86a3747abc742359397e3050b1fbef297415de5.tar.gz
git-f86a3747abc742359397e3050b1fbef297415de5.tar.xz
pack-bitmap.c: fix a memleak
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 6a818419c..5e9adc234 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,