This is an automated email from the ASF dual-hosted git repository.
masaori 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 837b5ea977 LSan: Fix memory leak of test_HostFile (#10064)
837b5ea977 is described below
commit 837b5ea9772a168b7956c25a042dbb7df722cab5
Author: Masaori Koshiba <[email protected]>
AuthorDate: Fri Jul 21 07:37:38 2023 +0900
LSan: Fix memory leak of test_HostFile (#10064)
---
iocore/hostdb/test_HostFile.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/iocore/hostdb/test_HostFile.cc b/iocore/hostdb/test_HostFile.cc
index a28cba8399..1f8cfe7215 100644
--- a/iocore/hostdb/test_HostFile.cc
+++ b/iocore/hostdb/test_HostFile.cc
@@ -175,4 +175,5 @@ HostDBRecord::alloc(swoc::TextView query_name, unsigned int
rr_count, size_t srv
void
HostDBRecord::free()
{
+ delete this;
}