Merge branch 'sb/more-repo-in-api'
[gitweb.git] / builtin / rev-list.c
index 51e9e1267e848b345ff7c78fe036e7e66bb6f055..14ef659c12a49e25bfc8b8143a7fb5b4138d1787 100644 (file)
@@ -197,7 +197,8 @@ static void finish_commit(struct commit *commit, void *data)
                free_commit_list(commit->parents);
                commit->parents = NULL;
        }
-       free_commit_buffer(commit);
+       free_commit_buffer(the_repository->parsed_objects,
+                          commit);
 }
 
 static inline void finish_object__ma(struct object *obj)