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

dmeden 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 41f4400641 CID-1508827 Fix leak in icap_plugin (#12045)
41f4400641 is described below

commit 41f4400641eac08df46846101f1c9c37addb1da3
Author: Damian Meden <[email protected]>
AuthorDate: Thu Feb 20 09:58:02 2025 +0100

    CID-1508827 Fix leak in icap_plugin (#12045)
---
 plugins/experimental/icap/icap_plugin.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/experimental/icap/icap_plugin.cc 
b/plugins/experimental/icap/icap_plugin.cc
index 3ecd129682..fdaa629b52 100644
--- a/plugins/experimental/icap/icap_plugin.cc
+++ b/plugins/experimental/icap/icap_plugin.cc
@@ -317,7 +317,7 @@ handle_icap_http_header(TransformData *data)
   /* Create the new header using http header in icap response */
   parser = TSHttpParserCreate();
   TSHttpHdrParseResp(parser, bufp, hdr_loc, &raw_resp, raw_resp + 
data->http_header.size());
-
+  TSHttpParserDestroy(parser);
   TSHandleMLocRelease(bufp, TS_NULL_MLOC, hdr_loc);
 }
 

Reply via email to