diff options
author | Russell Belfer <rb@github.com> | 2013-06-10 14:16:56 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-06-10 14:16:56 -0700 |
commit | 2f77d8f15d7c71a92f01850025c91dffe3bcafd4 (patch) | |
tree | 1ea1270e5fefce2a1f73b2105df7cfa635f46a22 /src/index.c | |
parent | 596b121ae46554cf48b4e561541e1ab975dbef78 (diff) | |
download | libgit2-2f77d8f15d7c71a92f01850025c91dffe3bcafd4.tar.gz |
Fix some memory leaks
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index.c b/src/index.c index 25c38b026..fd55616b8 100644 --- a/src/index.c +++ b/src/index.c @@ -2030,6 +2030,8 @@ int git_index_read_tree(git_index *index, const git_tree *tree) error = git_tree_walk(tree, GIT_TREEWALK_POST, read_tree_cb, &data); index_entries_free(&entries); + git_vector_free(&entries); + git_vector_sort(&index->entries); return error; |