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]
/
revision.c
diff --git
a/revision.c
b/revision.c
index
82214eb
..
7bff2a1
100644
(file)
--- a/
revision.c
+++ b/
revision.c
@@
-949,9
+949,11
@@
struct commit *get_revision(struct rev_info *revs)
}
do {
}
do {
- struct commit *commit = revs->commits->item;
+ struct commit_list *entry = revs->commits;
+ struct commit *commit = entry->item;
- revs->commits = revs->commits->next;
+ revs->commits = entry->next;
+ free(entry);
/*
* If we haven't done the list limiting, we need to look at
/*
* If we haven't done the list limiting, we need to look at