diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index fbb8eea11..0d8dce1aa 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -360,7 +360,8 @@ void Tokenizer::createTokens(std::istream &code) if (lineNumbers.empty() || fileIndexes.empty()) { std::cerr << "####### Preprocessor bug! #######\n"; - std::exit(0); + deallocateTokens(); + return; } lineno = lineNumbers.back();