diff options
| author | Junio C Hamano <gitster@pobox.com> | 2018-12-28 10:40:58 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-12-28 10:40:58 -0800 |
| commit | b9fbc04e26fcc2c7ba6dda32512b3726d31e4beb (patch) | |
| tree | d160a4832769b9f4733c8ecaf93e7eb565a37b2a /builtin/log.c | |
| parent | Git 2.20 (diff) | |
| parent | t/helper/test-repository: celebrate independence from the_repository (diff) | |
| download | git-b9fbc04e26fcc2c7ba6dda32512b3726d31e4beb.tar.gz git-b9fbc04e26fcc2c7ba6dda32512b3726d31e4beb.zip | |
Merge branch 'sb/more-repo-in-api' into md/list-objects-filter-by-depth
Diffstat (limited to 'builtin/log.c')
| -rw-r--r-- | builtin/log.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/builtin/log.c b/builtin/log.c index e8e51068bd..45aa376a59 100644 --- a/builtin/log.c +++ b/builtin/log.c @@ -397,7 +397,8 @@ static int cmd_log_walk(struct rev_info *rev) * We may show a given commit multiple times when * walking the reflogs. */ - free_commit_buffer(commit); + free_commit_buffer(the_repository->parsed_objects, + commit); free_commit_list(commit->parents); commit->parents = NULL; } @@ -1939,7 +1940,8 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix) open_next_file(rev.numbered_files ? NULL : commit, NULL, &rev, quiet)) die(_("Failed to create output files")); shown = log_tree_commit(&rev, commit); - free_commit_buffer(commit); + free_commit_buffer(the_repository->parsed_objects, + commit); /* We put one extra blank line between formatted * patches and this flag is used by log-tree code |
