Skip to content

Commit f86a374

Browse files
stefanbellergitster
authored andcommitted
pack-bitmap.c: fix a memleak
Signed-off-by: Stefan Beller <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 52735a6 commit f86a374

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pack-bitmap.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,8 @@ void test_bitmap_walk(struct rev_info *revs)
986986
fprintf(stderr, "OK!\n");
987987
else
988988
fprintf(stderr, "Mismatch!\n");
989+
990+
free(result);
989991
}
990992

991993
static int rebuild_bitmap(uint32_t *reposition,

0 commit comments

Comments
 (0)