diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2013-01-12 21:38:19 +0400 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-01-12 21:44:58 +0400 |
commit | 96c9b9f0e538c7dd2f1041f471dd8a9a587bc43f (patch) | |
tree | 4ae83a2d1b37673b8e0f8cc72fdad42a18d08f10 /src/pack.c | |
parent | e2d2c6e57d122f381fb42b7df1c7a12819050490 (diff) |
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.c | 2 |
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); |