]> git.ipfire.org Git - thirdparty/git.git/blobdiff - revision.c
rev-list: free commit_list in ... handler
[thirdparty/git.git] / revision.c
index 56bc4ff0e83b4cfedee6b0893f921be0c0bfcc31..b4157cbb6de7dba184ff1ca9a558769338154a0b 100644 (file)
@@ -817,6 +817,7 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
                                        exclude = get_merge_bases(a, b, 1);
                                        add_pending_commit_list(revs, exclude,
                                                                flags_exclude);
+                                       free_commit_list(exclude);
                                        a->object.flags |= flags;
                                } else
                                        a->object.flags |= flags_exclude;