This is an automated email from the ASF dual-hosted git repository. zwoop pushed a commit to branch 9.2.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.2.x by this push: new 5016652502 LSan: Fix leaks of Cache Unit Test (#10038) 5016652502 is described below commit 50166525025ebb19ff289f09380ba0c395863483 Author: Masaori Koshiba <masa...@apache.org> AuthorDate: Tue Jul 18 07:45:33 2023 +0900 LSan: Fix leaks of Cache Unit Test (#10038) (cherry picked from commit 8c71a4cc4ecdf1aeb12b5d89e85342737bdc1918) --- iocore/cache/test/test_Alternate_L_to_S_remove_L.cc | 1 + iocore/cache/test/test_Alternate_L_to_S_remove_S.cc | 1 + iocore/cache/test/test_Alternate_S_to_L_remove_L.cc | 1 + iocore/cache/test/test_Alternate_S_to_L_remove_S.cc | 1 + 4 files changed, 4 insertions(+) diff --git a/iocore/cache/test/test_Alternate_L_to_S_remove_L.cc b/iocore/cache/test/test_Alternate_L_to_S_remove_L.cc index 9e19f19426..5abac62233 100644 --- a/iocore/cache/test/test_Alternate_L_to_S_remove_L.cc +++ b/iocore/cache/test/test_Alternate_L_to_S_remove_L.cc @@ -114,6 +114,7 @@ public: { switch (event) { case CACHE_EVENT_OPEN_READ_FAILED: + this->_rt->close(); delete this; break; default: diff --git a/iocore/cache/test/test_Alternate_L_to_S_remove_S.cc b/iocore/cache/test/test_Alternate_L_to_S_remove_S.cc index a00ea333c9..31e9ce812d 100644 --- a/iocore/cache/test/test_Alternate_L_to_S_remove_S.cc +++ b/iocore/cache/test/test_Alternate_L_to_S_remove_S.cc @@ -115,6 +115,7 @@ public: { switch (event) { case CACHE_EVENT_OPEN_READ_FAILED: + this->_rt->close(); delete this; break; default: diff --git a/iocore/cache/test/test_Alternate_S_to_L_remove_L.cc b/iocore/cache/test/test_Alternate_S_to_L_remove_L.cc index af33eca1d8..4b009c1069 100644 --- a/iocore/cache/test/test_Alternate_S_to_L_remove_L.cc +++ b/iocore/cache/test/test_Alternate_S_to_L_remove_L.cc @@ -116,6 +116,7 @@ public: { switch (event) { case CACHE_EVENT_OPEN_READ_FAILED: + this->_rt->close(); delete this; break; default: diff --git a/iocore/cache/test/test_Alternate_S_to_L_remove_S.cc b/iocore/cache/test/test_Alternate_S_to_L_remove_S.cc index 9554f04745..6b59e4a518 100644 --- a/iocore/cache/test/test_Alternate_S_to_L_remove_S.cc +++ b/iocore/cache/test/test_Alternate_S_to_L_remove_S.cc @@ -114,6 +114,7 @@ public: { switch (event) { case CACHE_EVENT_OPEN_READ_FAILED: + this->_rt->close(); delete this; break; default: