diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2014-07-10 13:48:13 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-10-10 19:35:18 +0200 |
| commit | 19c88310cb79153e19b93c59020b2f7c34794f6e (patch) | |
| tree | f401be31a18eac3a566cd01ef046b9e6474f4412 /src/index.h | |
| parent | d091a9dbdeaa246b120feef60ce1940d7d22ea3d (diff) | |
| download | libgit2-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.h | 1 |
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; |
