This is an automated email from the ASF dual-hosted git repository. bcall pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push: new 24e78f2 Fixed memory leak in header unit test 24e78f2 is described below commit 24e78f275acce36189633aa1c92eb9c60b8fae02 Author: Bryan Call <bc...@apache.org> AuthorDate: Tue Apr 21 15:35:46 2020 -0700 Fixed memory leak in header unit test --- proxy/hdrs/unit_tests/test_HdrUtils.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proxy/hdrs/unit_tests/test_HdrUtils.cc b/proxy/hdrs/unit_tests/test_HdrUtils.cc index 50cca3a..9c41ae2 100644 --- a/proxy/hdrs/unit_tests/test_HdrUtils.cc +++ b/proxy/hdrs/unit_tests/test_HdrUtils.cc @@ -119,6 +119,7 @@ TEST_CASE("HdrUtils", "[proxy][hdrutils]") REQUIRE(value == "charlie"); value = iter.get_next(); REQUIRE(value.empty()); + heap->destroy(); } TEST_CASE("HdrUtils 2", "[proxy][hdrutils]") @@ -161,6 +162,7 @@ TEST_CASE("HdrUtils 2", "[proxy][hdrutils]") REQUIRE(parse != 0); REQUIRE(idx == text.size()); REQUIRE(0 == memcmp(ts::TextView(buff, idx), text)); + heap->destroy(); }; TEST_CASE("HdrUtils 3", "[proxy][hdrutils]") @@ -203,4 +205,5 @@ TEST_CASE("HdrUtils 3", "[proxy][hdrutils]") REQUIRE(parse != 0); REQUIRE(idx == text.size()); REQUIRE(0 == memcmp(ts::TextView(buff, idx), text)); + heap->destroy(); };