mirror of
https://git.proxmox.com/git/libgit2
synced 2025-07-09 09:08:32 +00:00
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:
parent
19d13c65e1
commit
54b9460fee
@ -1098,6 +1098,8 @@ static void pack_dec(git_pack *p)
|
|||||||
gitfo_free_map(&p->idx_map);
|
gitfo_free_map(&p->idx_map);
|
||||||
gitfo_close(p->idx_fd);
|
gitfo_close(p->idx_fd);
|
||||||
free(p->im_fanout);
|
free(p->im_fanout);
|
||||||
|
free(p->im_off_idx);
|
||||||
|
free(p->im_off_next);
|
||||||
}
|
}
|
||||||
|
|
||||||
gitlck_free(&p->lock);
|
gitlck_free(&p->lock);
|
||||||
|
Loading…
Reference in New Issue
Block a user