projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some more memory leak avoidance
[git.git]
/
builtin-rev-list.c
diff --git
a/builtin-rev-list.c
b/builtin-rev-list.c
index
2b298c4
..
71353eb
100644
(file)
--- a/
builtin-rev-list.c
+++ b/
builtin-rev-list.c
@@
-89,6
+89,14
@@
static void show_commit(struct commit *commit)
printf("%s%c", pretty_header, hdr_termination);
}
fflush(stdout);
printf("%s%c", pretty_header, hdr_termination);
}
fflush(stdout);
+ if (commit->parents) {
+ free_commit_list(commit->parents);
+ commit->parents = NULL;
+ }
+ if (commit->buffer) {
+ free(commit->buffer);
+ commit->buffer = NULL;
+ }
}
static struct object_list **process_blob(struct blob *blob,
}
static struct object_list **process_blob(struct blob *blob,