[PATCHv3 5/6] pack-bitmap.c: fix a memleak
- From
Stefan Beller <sbeller@google.com>
- Date
- Mar 31, 2015, 01:22 UTC
- Message-ID
- <1427764931-27745-6-git-send-email-sbeller@google.com>
- In-Reply-To
- <1427764931-27745-1-git-send-email-sbeller@google.com>
Signed-off-by: Stefan Beller <sbeller@google.com> --- pack-bitmap.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/pack-bitmap.c b/pack-bitmap.c index 365f9d9..62a98cc 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,
-- 2.3.0.81.gc37f363