trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject [trafficserver] branch 8.0.x updated: fix argument order on TSMLocReleaseHandle calls
Date Thu, 21 Jun 2018 22:11:28 GMT
This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 8.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/8.0.x by this push:
     new 8ed2216  fix argument order on TSMLocReleaseHandle calls
8ed2216 is described below

commit 8ed2216978ec7bb82262e6bd44b8b3b5bc90df5c
Author: Brian Olsen <brian_olsen2@comcast.com>
AuthorDate: Thu Jun 21 18:07:22 2018 +0000

    fix argument order on TSMLocReleaseHandle calls
    
    (cherry picked from commit ab64369eb89a277e13c91ae4a6d455e94f50465d)
---
 .../experimental/cache_range_requests/cache_range_requests.cc  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/plugins/experimental/cache_range_requests/cache_range_requests.cc b/plugins/experimental/cache_range_requests/cache_range_requests.cc
index bea37ac..14bbe57 100644
--- a/plugins/experimental/cache_range_requests/cache_range_requests.cc
+++ b/plugins/experimental/cache_range_requests/cache_range_requests.cc
@@ -127,7 +127,7 @@ range_header_check(TSHttpTxn txnp)
     } else {
       DEBUG_LOG("no range request header.");
     }
-    TSHandleMLocRelease(hdr_bufp, req_hdrs, nullptr);
+    TSHandleMLocRelease(hdr_bufp, TS_NULL_MLOC, req_hdrs);
   } else {
     DEBUG_LOG("failed to retrieve the server request");
   }
@@ -150,7 +150,7 @@ handle_send_origin_request(TSCont contp, TSHttpTxn txnp, struct txndata
*txn_sta
       TSHttpTxnHookAdd(txnp, TS_HTTP_READ_RESPONSE_HDR_HOOK, contp);
     }
   }
-  TSHandleMLocRelease(hdr_bufp, req_hdrs, nullptr);
+  TSHandleMLocRelease(hdr_bufp, TS_NULL_MLOC, req_hdrs);
 }
 
 /**
@@ -194,8 +194,8 @@ handle_client_send_response(TSHttpTxn txnp, struct txndata *txn_state)
   } else {
     DEBUG_LOG("failed to get Request Headers");
   }
-  TSHandleMLocRelease(response, resp_hdr, nullptr);
-  TSHandleMLocRelease(hdr_bufp, req_hdrs, nullptr);
+  TSHandleMLocRelease(response, TS_NULL_MLOC, resp_hdr);
+  TSHandleMLocRelease(hdr_bufp, TS_NULL_MLOC, req_hdrs);
 }
 
 /**
@@ -227,7 +227,7 @@ handle_server_read_response(TSHttpTxn txnp, struct txndata *txn_state)
       }
     }
   }
-  TSHandleMLocRelease(response, resp_hdr, nullptr);
+  TSHandleMLocRelease(response, TS_NULL_MLOC, resp_hdr);
 }
 
 /**


Mime
View raw message