aboutsummaryrefslogtreecommitdiff
path: root/builtin-describe.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-01-10 22:36:16 -0800
committerJunio C Hamano <junkio@cox.net>2007-01-11 18:05:53 -0800
commit94d23673e37160ee99ec1b1cd23ff3b7a79f7226 (patch)
tree9ee168381286822c91a11399afee819f16f7acda /builtin-describe.c
parent80dbae03b010b1e5c6e0e4f475578d6cadaadecf (diff)
downloadgit-94d23673e37160ee99ec1b1cd23ff3b7a79f7226.tar.gz
git-94d23673e37160ee99ec1b1cd23ff3b7a79f7226.tar.xz
plug a few leaks in revision walking used in describe.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-describe.c')
-rw-r--r--builtin-describe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-describe.c b/builtin-describe.c
index d65c7d286..a8c98cea1 100644
--- a/builtin-describe.c
+++ b/builtin-describe.c
@@ -183,6 +183,7 @@ static void describe(const char *arg, int last_one)
cur_match->depth++;
if (!min_match || cur_match->depth < min_match->depth)
min_match = cur_match;
+ free_commit_list(revs.commits);
}
printf("%s-g%s\n", min_match->name->path,
find_unique_abbrev(cmit->object.sha1, abbrev));