summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2010-04-07 20:13:56 +0100
committerAndreas Ericsson <ae@op5.se>2010-04-30 09:47:53 +0200
commit54b9460fee5219cb5a57118bce066697704ef3f8 (patch)
tree2f1c5d509ac5bffb3c62f710a1c2c542e126dfd1 /src
parent19d13c65e11f45c3be6666c6c4c9732c6f4ab40a (diff)
downloadlibgit2-54b9460fee5219cb5a57118bce066697704ef3f8.tar.gz
Fix the memory leak caused by failing to free the 'offset index'
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/odb.c2
1 files changed, 2 insertions, 0 deletions
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);