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 8dda1e7f37 Use ats_free instead of free in LogFlushData destructor 
(#12024)
8dda1e7f37 is described below

commit 8dda1e7f3735872a71380d1aa0908fbf81dc1370
Author: Hiroaki Nakamura <[email protected]>
AuthorDate: Wed Feb 12 13:22:16 2025 +0900

    Use ats_free instead of free in LogFlushData destructor (#12024)
    
    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.
---
 include/proxy/logging/Log.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/proxy/logging/Log.h b/include/proxy/logging/Log.h
index 983a8ae975..4cf40db096 100644
--- a/include/proxy/logging/Log.h
+++ b/include/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:

Reply via email to