Fix the memory leak caused by failing to free the 'offset index'

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
This commit is contained in:
Ramsay Jones 2010-04-07 20:13:56 +01:00 committed by Andreas Ericsson
parent 19d13c65e1
commit 54b9460fee

View File

@ -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);