src/test: free pointers

BodgeMaster-unfinished
Milan Suman 2022-07-20 12:13:47 +05:30
parent b5312aeb58
commit 4659946a2f
2 changed files with 2 additions and 1 deletions

View File

@ -93,6 +93,7 @@ int main(){
ASSERT(exportedString == javaStdString);
std::cout << "Passed Export Java string test." << std::endl;
delete nextChar;
return 0;
}

View File

@ -494,6 +494,6 @@ int main(){
ASSERT(NBT::helper::readString(reinterpret_cast<uint8_t*>(javaStdString.data()), 0xFFFFF, 0).errorCode == ErrorCodes::OVERRUN);
ASSERT(NBT::helper::readString(reinterpret_cast<uint8_t*>(javaStdString.data()), 0xF, 0).errorCode == ErrorCodes::MISMATCHEDSIZE);
std::cout << "Passed readString NBT helper test." << std::endl;
delete nextChar;
return 0;
}