projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use less memory in "git log"
[git.git]
/
git.c
diff --git
a/git.c
b/git.c
index
d6f17db
..
78ed403
100644
(file)
--- a/
git.c
+++ b/
git.c
@@
-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;