fix memory leak

release/4.3a0
Varun Agrawal 2023-06-08 18:32:02 -04:00
parent 2d48dd0608
commit 6584b78cb4
1 changed files with 3 additions and 0 deletions

View File

@ -149,6 +149,9 @@ TEST(StdOptionalSerialization, SerializTestOptionalStructPointerPointer) {
// Check that it worked
EXPECT(opt2.has_value());
EXPECT(**opt2 == TestOptionalStruct(42));
delete (*opt);
delete (*opt2);
}
int main() {