]> git.sesse.net Git - stockfish/blobdiff - src/pawns.cpp
Rewrite the way application exits
[stockfish] / src / pawns.cpp
index f06d9f12a1d2a39525bc05184fd511e737c68aa1..f34095b9da37c3c4146e6a1971870c35ccd941dd 100644 (file)
@@ -144,7 +144,7 @@ PawnInfoTable::PawnInfoTable(unsigned numOfEntries) {
   {
       std::cerr << "Failed to allocate " << (numOfEntries * sizeof(PawnInfo))
                 << " bytes for pawn hash table." << std::endl;
-      exit(EXIT_FAILURE);
+      Application::exit_with_failure();
   }
   clear();
 }