]> git.sesse.net Git - stockfish/commitdiff
Fix a Windows-only crash on exit without 'quit'
authorSami Kiminki <skiminki@users.noreply.github.com>
Thu, 14 May 2020 09:00:35 +0000 (12:00 +0300)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Thu, 14 May 2020 18:35:40 +0000 (20:35 +0200)
There was a bug in commit d4763424d2728fe2dfd0a6fe747666feb6a2fdbb
(Add support for Windows large pages) that could result in trying to
free memory allocated with VirtualAlloc incorrectly with free().

Fix this by reverting the TT.resize(0) logic in the previous commit,
and instead, just call aligned_ttmem_free() in
TranspositionTable::~TranspositionTable().

fixes https://github.com/official-stockfish/Stockfish/issues/2677

closes https://github.com/official-stockfish/Stockfish/pull/2679

No functional change


No differences found