diff options
-rw-r--r-- | git.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -391,6 +391,8 @@ static int cmd_log(int argc, const char **argv, char **envp) if (do_diff) log_tree_commit(&opt, commit); shown = 1; + free(commit->buffer); + commit->buffer = NULL; } free(buf); return 0; |