aboutsummaryrefslogtreecommitdiff
path: root/builtin-describe.c
diff options
context:
space:
mode:
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));