From 54b9460fee5219cb5a57118bce066697704ef3f8 Mon Sep 17 00:00:00 2001 From: Ramsay Jones Date: Wed, 7 Apr 2010 20:13:56 +0100 Subject: [PATCH] Fix the memory leak caused by failing to free the 'offset index' Signed-off-by: Ramsay Jones --- src/odb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/odb.c b/src/odb.c index 85a843cc1..58840c6f7 100644 --- a/src/odb.c +++ b/src/odb.c @@ -1098,6 +1098,8 @@ static void pack_dec(git_pack *p) gitfo_free_map(&p->idx_map); gitfo_close(p->idx_fd); free(p->im_fanout); + free(p->im_off_idx); + free(p->im_off_next); } gitlck_free(&p->lock);