From 87ab8c7094f52d6bb2c0a19decb96dd19dc11155 Mon Sep 17 00:00:00 2001 From: Masaori Koshiba Date: Wed, 19 Jul 2023 22:07:38 +0900 Subject: [PATCH] LSan: Fix memory leak of test_HostFile --- 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 c21924159f6..a01e8a1955f 100644 --- a/iocore/hostdb/test_HostFile.cc +++ b/iocore/hostdb/test_HostFile.cc @@ -173,4 +173,5 @@ HostDBRecord::alloc(ts::TextView query_name, unsigned int rr_count, size_t srv_n void HostDBRecord::free() { + delete this; }