diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-11-23 14:12:54 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-11-23 15:51:31 +0100 |
commit | f7fcb18f8a7541bfc0228967fcbd916a9f515638 (patch) | |
tree | ac2c6cb36f16206fdf2f6d6bb5b7904141aedd2d /src/diff.c | |
parent | e06b1040d703b4489f8280674e59b5245595c586 (diff) | |
download | libgit2-f7fcb18f8a7541bfc0228967fcbd916a9f515638.tar.gz |
Plug leaks
Valgrind is now clean except for libssl and libgcrypt.
Diffstat (limited to 'src/diff.c')
-rw-r--r-- | src/diff.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/diff.c b/src/diff.c index 89b3b77f3..1f3ee63be 100644 --- a/src/diff.c +++ b/src/diff.c @@ -1234,7 +1234,7 @@ int git_diff_tree_to_workdir( assert(diff && repo); - if ((error = git_repository_index(&index, repo))) + if ((error = git_repository_index__weakptr(&index, repo))) return error; DIFF_FROM_ITERATORS( @@ -1243,7 +1243,6 @@ int git_diff_tree_to_workdir( &b, repo, index, old_tree, GIT_ITERATOR_DONT_AUTOEXPAND, pfx, pfx) ); - git_index_free(index); return error; } |