This is an automated email from the ASF dual-hosted git repository.
eze 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 8b090c10a3 Use ats_free instead of free in LogFlushData destructor
(#12024) (#12500)
8b090c10a3 is described below
commit 8b090c10a3dbf74a94668fcc4e53d2f36914b0f7
Author: Evan Zelkowitz <[email protected]>
AuthorDate: Mon Sep 15 16:20:51 2025 -0600
Use ats_free instead of free in LogFlushData destructor (#12024) (#12500)
When m_logfile->m_file_format in LogData is LOG_FILE_ASCII or
LOG_FILE_PIPE, m_data in LogData is allocated with ats_malloc in
LogFile::write_ascii_logbuffer3.
(cherry picked from commit 8dda1e7f3735872a71380d1aa0908fbf81dc1370)
Co-authored-by: Hiroaki Nakamura <[email protected]>
---
proxy/logging/Log.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxy/logging/Log.h b/proxy/logging/Log.h
index 41ce8652fc..f98b474218 100644
--- a/proxy/logging/Log.h
+++ b/proxy/logging/Log.h
@@ -92,7 +92,7 @@ public:
break;
case LOG_FILE_ASCII:
case LOG_FILE_PIPE:
- free(m_data);
+ ats_free(m_data);
break;
case N_LOGFILE_TYPES:
default: