summaryrefslogtreecommitdiff
path: root/t/t3402-rebase-merge.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2023-07-10 21:12:10 (GMT)
committerJunio C Hamano <gitster@pobox.com>2023-07-10 21:48:55 (GMT)
commit311bfe18ce8563d0b1b571e9dc9eb35b97de3790 (patch)
tree5aabb2a74a8dd06565c005b7c7fe6bee991d9c3f /t/t3402-rebase-merge.sh
parentb9f7daa6ef52ad8894b5f730eaee0599668d66d5 (diff)
downloadgit-311bfe18ce8563d0b1b571e9dc9eb35b97de3790.zip
git-311bfe18ce8563d0b1b571e9dc9eb35b97de3790.tar.gz
git-311bfe18ce8563d0b1b571e9dc9eb35b97de3790.tar.bz2
ref-filter: clear reachable list pointers after freeing
In `reach_filter()`, we pop all commits from the reachable lists, leaving them empty. But because we're operating on a list pointer that was passed by value, the original `filter.reachable_from` and `filter.unreachable_from` pointers are left dangling. As is the case with the previous commit, nobody touches either of these fields after calling `reach_filter()`, so leaving them dangling is OK. But this future proofs against dangerous situations. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3402-rebase-merge.sh')
0 files changed, 0 insertions, 0 deletions