This is an automated email from the ASF dual-hosted git repository.

cmcfarlen 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 d998ddd720 Fix a memory leak in the main function in traffic_server.cc 
(#12099)
d998ddd720 is described below

commit d998ddd720f60d5ab55bd447d6f8856c2479151f
Author: Hiroaki Nakamura <[email protected]>
AuthorDate: Tue Apr 1 06:28:40 2025 +0900

    Fix a memory leak in the main function in traffic_server.cc (#12099)
---
 src/traffic_server/traffic_server.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/traffic_server/traffic_server.cc 
b/src/traffic_server/traffic_server.cc
index db932a3b83..ece3dab22b 100644
--- a/src/traffic_server/traffic_server.cc
+++ b/src/traffic_server/traffic_server.cc
@@ -2161,6 +2161,7 @@ main(int /* argc ATS_UNUSED */, const char **argv)
   if (p) {
     // Translate string to IpAddr
     set_debug_ip(p);
+    ats_free(p);
   }
   REC_RegisterConfigUpdateFunc("proxy.config.diags.debug.client_ip", 
update_debug_client_ip, nullptr);
 

Reply via email to