Skip to content

Commit

Permalink
string test: fix memory leak due to missing destructor call
Browse files Browse the repository at this point in the history
  • Loading branch information
freshFruict committed Jan 22, 2025
1 parent 269b98e commit 2cbc163
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/cstring_serialize_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -244,4 +244,7 @@ TEST_CASE_TEMPLATE("string serialization capacity", StrT, cista::raw::string,
CHECK(ptr_l != serialized_l->data());
CHECK(*serialized_s == get_short());
CHECK(*serialized_l == get_long());

serialized_s->~StrT();
serialized_l->~StrT();
}

0 comments on commit 2cbc163

Please sign in to comment.