Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-01-12 21:38:19 +0400
committerCarlos Martín Nieto <cmn@dwim.me>2013-01-12 21:44:58 +0400
commit96c9b9f0e538c7dd2f1041f471dd8a9a587bc43f (patch)
tree4ae83a2d1b37673b8e0f8cc72fdad42a18d08f10 /src/pack.h
parente2d2c6e57d122f381fb42b7df1c7a12819050490 (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.h')
-rw-r--r--src/pack.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pack.h b/src/pack.h
index db57e57d2..6c43d8f5b 100644
--- a/src/pack.h
+++ b/src/pack.h
@@ -139,7 +139,7 @@ git_off_t get_delta_base(struct git_pack_file *p, git_mwindow **w_curs,
git_off_t *curpos, git_otype type,
git_off_t delta_obj_offset);
-void packfile_free(struct git_pack_file *p);
+void git_packfile_free(struct git_pack_file *p);
int git_packfile_check(struct git_pack_file **pack_out, const char *path);
int git_pack_entry_find(
struct git_pack_entry *e,