summaryrefslogtreecommitdiff
path: root/src/pack.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-01-12 18:38:19 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2013-01-12 18:44:58 +0100
commit96c9b9f0e538c7dd2f1041f471dd8a9a587bc43f (patch)
tree4ae83a2d1b37673b8e0f8cc72fdad42a18d08f10 /src/pack.c
parente2d2c6e57d122f381fb42b7df1c7a12819050490 (diff)
downloadlibgit2-96c9b9f0e538c7dd2f1041f471dd8a9a587bc43f.tar.gz
indexer: properly free the packfile resources
The indexer needs to call the packfile's free function so it takes care of freeing the caches. We still need to close the mwf descriptor manually so we can rename the packfile into its final name on Windows.
Diffstat (limited to 'src/pack.c')
-rw-r--r--src/pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pack.c b/src/pack.c
index dcf9dd178..3490c8bb9 100644
--- a/src/pack.c
+++ b/src/pack.c
@@ -794,7 +794,7 @@ static struct git_pack_file *packfile_alloc(size_t extra)
}
-void packfile_free(struct git_pack_file *p)
+void git_packfile_free(struct git_pack_file *p)
{
assert(p);