Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4046

HdrHeap and HdrStrHeap leak in HttpTransact::EndRemapRequest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.2.0, 7.0.0
    • HTTP, MIME, Plugins

    Description

      HTTPHdr::clear is called instead of HdrHeapSDKHandle::destroy in HttpTransact::EndRemapRequest. This will definitely cause memory leak when a plugin calls TSHttpTxnServerIntercept or TSHttpTxnIntercept. This bug influences a lot of users. Here is a patch below.

      @@ -892,7 +892,7 @@
           HTTP_INCREMENT_TRANS_STAT(http_invalid_client_requests_stat);
           TRANSACT_RETURN(SM_ACTION_SEND_ERROR_CACHE_NOOP, NULL);
         } else {
      -    s->hdr_info.client_response.clear(); // anything previously set is invalid from this point forward
      +    s->hdr_info.client_response.destroy();
           DebugTxn("http_trans", "END HttpTransact::EndRemapRequest");
       
           if (s->is_upgrade_request && s->post_remap_upgrade_return_point) {
      

      Attachments

        Activity

          People

            amc Alan M. Carroll
            rienzi2012 rienzi2012
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: