summaryrefslogtreecommitdiff
path: root/builtin/diff.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2011-06-20 07:40:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-06-20 21:27:36 (GMT)
commitdc4cd767108532161d27554162a8742f5b607eb8 (patch)
tree605e8af6e513dbe39435b256b3f8b164911a8d6d /builtin/diff.c
parent28eb1afec90fab398fc58a1d6119b9e99a733f87 (diff)
downloadgit-dc4cd767108532161d27554162a8742f5b607eb8.zip
git-dc4cd767108532161d27554162a8742f5b607eb8.tar.gz
git-dc4cd767108532161d27554162a8742f5b607eb8.tar.bz2
plug a few coverity-spotted leaks
Signed-off-by: Jim Meyering <meyering@redhat.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/diff.c')
-rw-r--r--builtin/diff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/diff.c b/builtin/diff.c
index 14bd14f..69cd5ee 100644
--- a/builtin/diff.c
+++ b/builtin/diff.c
@@ -182,6 +182,7 @@ static int builtin_diff_combined(struct rev_info *revs,
hashcpy((unsigned char *)(parent + i), ent[i].item->sha1);
diff_tree_combined(parent[0], parent + 1, ents - 1,
revs->dense_combined_merges, revs);
+ free(parent);
return 0;
}