diff options
author | Edward Thomson <ethomson@microsoft.com> | 2015-09-25 12:44:14 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@github.com> | 2016-05-26 13:01:07 -0500 |
commit | a03952f09547cc72c8edda503aac8ab9652f3c98 (patch) | |
tree | 6bc051fde43e583dd036b42c8ed4863ac60e52f3 /src | |
parent | e564fc65b53b67ff0753749caa07b7877fb22420 (diff) | |
download | libgit2-a03952f09547cc72c8edda503aac8ab9652f3c98.tar.gz |
patch: formatting cleanups
Diffstat (limited to 'src')
-rw-r--r-- | src/pack-objects.c | 2 | ||||
-rw-r--r-- | src/patch_diff.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pack-objects.c b/src/pack-objects.c index ec15970f3..20a8e47ab 100644 --- a/src/pack-objects.c +++ b/src/pack-objects.c @@ -888,7 +888,7 @@ static unsigned int check_delta_limit(git_pobject *me, unsigned int n) static unsigned long free_unpacked(struct unpacked *n) { unsigned long freed_mem = 0; - + if (n->index) { freed_mem += git_delta_index_size(n->index); git_delta_index_free(n->index); diff --git a/src/patch_diff.c b/src/patch_diff.c index b8adcf3e1..bae0bd227 100644 --- a/src/patch_diff.c +++ b/src/patch_diff.c @@ -25,7 +25,7 @@ static void patch_diff_free(git_patch *p) { git_patch_diff *patch = (git_patch_diff *)p; - git_array_clear(patch->base.lines); + git_array_clear(patch->base.lines); git_array_clear(patch->base.hunks); git__free((char *)patch->base.binary.old_file.data); |