summaryrefslogtreecommitdiff
path: root/src/odb_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/odb_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/odb_pack.c')
-rw-r--r--src/odb_pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odb_pack.c b/src/odb_pack.c
index 9d0c4c0e7..9779ecd25 100644
--- a/src/odb_pack.c
+++ b/src/odb_pack.c
@@ -538,7 +538,7 @@ static void pack_backend__free(git_odb_backend *_backend)
for (i = 0; i < backend->packs.length; ++i) {
struct git_pack_file *p = git_vector_get(&backend->packs, i);
- packfile_free(p);
+ git_packfile_free(p);
}
git_vector_free(&backend->packs);