summaryrefslogtreecommitdiff
path: root/Documentation/rev-list-options.txt
diff options
context:
space:
mode:
authorLibravatar Patrick Steinhardt <ps@pks.im>2020-03-30 15:46:13 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-03-30 10:34:11 -0700
commitedc30691e5729435177e4fdccb8c13c3948e3c5a (patch)
tree6e12dabd71cf61b62d94ca51619940ce837be913 /Documentation/rev-list-options.txt
parentThe second batch post 2.26 cycle (diff)
downloadtgif-edc30691e5729435177e4fdccb8c13c3948e3c5a.tar.xz
refs: fix segfault when aborting empty transaction
When cleaning up a transaction that has no updates queued, then the transaction's backend data will not have been allocated. We correctly handle this for the packed backend, where the cleanup function checks whether the backend data has been allocated at all -- if not, then there is nothing to clean up. For the files backend we do not check this and as a result will hit a segfault due to dereferencing a `NULL` pointer when cleaning up such a transaction. Fix the issue by checking whether `backend_data` is set in the files backend, too. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/rev-list-options.txt')
0 files changed, 0 insertions, 0 deletions