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 fbd89ba44c Coverity 1523638: Resource leak in object in cache test for
RWW (#11353)
fbd89ba44c is described below
commit fbd89ba44c89e6ef05305f696352c610871570da
Author: Bryan Call <[email protected]>
AuthorDate: Thu May 16 13:39:19 2024 -0600
Coverity 1523638: Resource leak in object in cache test for RWW (#11353)
---
src/iocore/cache/unit_tests/test_RWW.cc | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/iocore/cache/unit_tests/test_RWW.cc
b/src/iocore/cache/unit_tests/test_RWW.cc
index 40426c17b3..8a3c554564 100644
--- a/src/iocore/cache/unit_tests/test_RWW.cc
+++ b/src/iocore/cache/unit_tests/test_RWW.cc
@@ -57,6 +57,11 @@ public:
SET_HANDLER(&CacheRWWTest::start_test);
}
+ ~CacheRWWTest() override
+ {
+ delete this->_rt;
+ delete this->_wt;
+ }
void handle_cache_event(int event, CacheTestBase *e) override;
int start_test(int event, void *e);