Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
leak_pending: use `object_array_clear()`, not `free()`
[gitweb.git]
/
bisect.c
diff --git
a/bisect.c
b/bisect.c
index a9fd9fbc61a661ab19e18713b115f868daab2f98..fc797f6aea90597397f8f25753db0da439848449 100644
(file)
--- a/
bisect.c
+++ b/
bisect.c
@@
-826,7
+826,8
@@
static int check_ancestors(const char *prefix)
/* Clean up objects used, as they will be reused. */
clear_commit_marks_for_object_array(&pending_copy, ALL_REV_FLAGS);
- free(pending_copy.objects);
+
+ object_array_clear(&pending_copy);
return res;
}