diff options
author | Russell Belfer <rb@github.com> | 2013-12-12 12:11:38 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-12-12 12:11:38 -0800 |
commit | 9cfce2735d77f4d8b6005e62349dd97c0c6de5ab (patch) | |
tree | b538c09a7d7d6285f218a052019332ac02bb314c /src/diff.c | |
parent | 11bd7a034ba9046a7ba601c446e937377d507065 (diff) | |
download | libgit2-9cfce2735d77f4d8b6005e62349dd97c0c6de5ab.tar.gz |
Cleanups, renames, and leak fixes
This renames git_vector_free_all to the better git_vector_free_deep
and also contains a couple of memory leak fixes based on valgrind
checks. The fixes are specifically: failure to free global dir
path variables when not compiled with threading on and failure to
free filters from the filter registry that had not be initialized
fully.
Diffstat (limited to 'src/diff.c')
-rw-r--r-- | src/diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c index 83adc2a8c..7f2e58c0c 100644 --- a/src/diff.c +++ b/src/diff.c @@ -476,7 +476,7 @@ static int diff_list_apply_options( static void diff_list_free(git_diff *diff) { - git_vector_free_all(&diff->deltas); + git_vector_free_deep(&diff->deltas); git_pathspec__vfree(&diff->pathspec); git_pool_clear(&diff->pool); |