Fix the memory leak caused by failing to free the 'offset index' Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
diff --git a/src/odb.c b/src/odb.c
index 85a843c..58840c6 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);