summaryrefslogtreecommitdiff
path: root/src/index.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-07-10 13:48:13 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-10-10 19:35:18 +0200
commit19c88310cb79153e19b93c59020b2f7c34794f6e (patch)
treef401be31a18eac3a566cd01ef046b9e6474f4412 /src/index.h
parentd091a9dbdeaa246b120feef60ce1940d7d22ea3d (diff)
downloadlibgit2-19c88310cb79153e19b93c59020b2f7c34794f6e.tar.gz
tree-cache: move to use a pool allocator
This simplifies freeing the entries quite a bit; though there aren't that many failure paths right now, introducing filling the cache from a tree will introduce more. This makes sure not to leak memory on errors.
Diffstat (limited to 'src/index.h')
-rw-r--r--src/index.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/index.h b/src/index.h
index 50a0b4b6c..2eb93fb17 100644
--- a/src/index.h
+++ b/src/index.h
@@ -35,6 +35,7 @@ struct git_index {
unsigned int no_symlinks:1;
git_tree_cache *tree;
+ git_pool tree_pool;
git_vector names;
git_vector reuc;