This is an automated email from the ASF dual-hosted git repository. mochen 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 75cbabcf8 Fix a leak in HostDBRecord (#9259) 75cbabcf8 is described below commit 75cbabcf8fda293bc76c5a30db788b019aa4e290 Author: Mo Chen <moc...@apache.org> AuthorDate: Mon Dec 19 19:01:17 2022 -0600 Fix a leak in HostDBRecord (#9259) --- iocore/hostdb/HostDB.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iocore/hostdb/HostDB.cc b/iocore/hostdb/HostDB.cc index cc43f32a7..fe64b9b07 100644 --- a/iocore/hostdb/HostDB.cc +++ b/iocore/hostdb/HostDB.cc @@ -2082,7 +2082,7 @@ REGRESSION_TEST(HostDBProcessor)(RegressionTest *t, int atype, int *pstatus) void HostDBRecord::free() { - if (_iobuffer_index > 0) { + if (_iobuffer_index >= 0) { Debug("hostdb", "freeing %d bytes at [%p]", (1 << (7 + _iobuffer_index)), this); ioBufAllocator[_iobuffer_index].free_void(static_cast<void *>(this)); }