trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject svn commit: r1041848 [2/2] - in /trafficserver/traffic/trunk: ./ example/append-transform/ example/basic-auth/ example/blacklist-0/ example/blacklist-1/ example/cache_scan/ example/include_other/ example/redirect-1/ example/response-header-1/ proxy/ pr...
Date Fri, 03 Dec 2010 15:06:37 GMT
Modified: trafficserver/traffic/trunk/test/plugin/climate/climate.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/test/plugin/climate/climate.c?rev=1041848&r1=1041847&r2=1041848&view=diff
==============================================================================
--- trafficserver/traffic/trunk/test/plugin/climate/climate.c (original)
+++ trafficserver/traffic/trunk/test/plugin/climate/climate.c Fri Dec  3 15:06:36 2010
@@ -550,7 +550,6 @@ retrieve_transaction_info(TSHttpTxn txnp
     data->method = TSmalloc(str_len + 1);
     memcpy(data->method, str, str_len);
     data->method[str_len] = '\0';
-    TSHandleStringRelease(buf_req, hdr_req_loc, str);
 
     /* Get client HTTP version */
     data->client_version = TSHttpHdrVersionGet(buf_req, hdr_req_loc);

Modified: trafficserver/traffic/trunk/test/plugin/include_other/macro.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/test/plugin/include_other/macro.h?rev=1041848&r1=1041847&r2=1041848&view=diff
==============================================================================
--- trafficserver/traffic/trunk/test/plugin/include_other/macro.h (original)
+++ trafficserver/traffic/trunk/test/plugin/include_other/macro.h Fri Dec  3 15:06:36 2010
@@ -90,17 +90,6 @@
     } \
 }\
 
-#define STR_RELEASE(P_BUFFER, P_PARENT, P_STR) \
-{ \
-    if (VALID_PTR(P_STR)) { \
-        if (TSHandleStringRelease(P_BUFFER, P_PARENT, P_STR) == TS_ERROR) { \
-            LOG_API_ERROR("TSHandleStringRelease"); \
-        } else  { \
-            P_STR = NULL; \
-        } \
-    } \
-}\
-
 #define URL_DESTROY(P_BUFFER, P_MLOC) \
 { \
     if (VALID_PTR(P_MLOC)) {\

Modified: trafficserver/traffic/trunk/test/plugin/lookup/lookup.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/test/plugin/lookup/lookup.c?rev=1041848&r1=1041847&r2=1041848&view=diff
==============================================================================
--- trafficserver/traffic/trunk/test/plugin/lookup/lookup.c (original)
+++ trafficserver/traffic/trunk/test/plugin/lookup/lookup.c Fri Dec  3 15:06:36 2010
@@ -643,16 +643,6 @@ handle_read_request(TSHttpTxn txnp, TSCo
   }
 
 Lcleanup:
-  if (VALID_POINTER(hostnameString)) {
-    if (TSHandleStringRelease(clientReqBuf, hostnameLoc, hostnameString) == TS_ERROR) {
-      LOG_ERROR("TSHandleStringRelease");
-    }
-  }
-  if (VALID_POINTER(hostnameLengthString)) {
-    if (TSHandleStringRelease(clientReqBuf, hostnameLengthLoc, hostnameLengthString) == TS_ERROR)
{
-      LOG_ERROR("TSHandleStringRelease");
-    }
-  }
   if (VALID_POINTER(hostnameLoc)) {
     if (TSHandleMLocRelease(clientReqBuf, clientReqLoc, hostnameLoc) == TS_ERROR) {
       LOG_ERROR("TSHandleMLocRelease");

Modified: trafficserver/traffic/trunk/test/plugin/redirect-1-neg/redirect-1-neg.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/test/plugin/redirect-1-neg/redirect-1-neg.c?rev=1041848&r1=1041847&r2=1041848&view=diff
==============================================================================
--- trafficserver/traffic/trunk/test/plugin/redirect-1-neg/redirect-1-neg.c (original)
+++ trafficserver/traffic/trunk/test/plugin/redirect-1-neg/redirect-1-neg.c Fri Dec  3 15:06:36
2010
@@ -203,7 +203,6 @@ handle_client_lookup(TSHttpTxn txnp, TSC
    *   Check to see if the client is already headed to the redirect site.
    */
   if (strncmp(host, url_redirect, host_length) == 0) {
-    TSHandleStringRelease(bufp, url_loc, host);
     TSHandleMLocRelease(bufp, hdr_loc, url_loc);
     TSHandleMLocRelease(bufp, TS_NULL_MLOC, hdr_loc);
     goto done;
@@ -212,7 +211,6 @@ handle_client_lookup(TSHttpTxn txnp, TSC
   if (ip_deny == clientip) {
 
     TSHttpTxnHookAdd(txnp, TS_HTTP_SEND_RESPONSE_HDR_HOOK, contp);
-    TSHandleStringRelease(bufp, url_loc, host);
 
     update_redirected_method_stats(bufp, hdr_loc);
 
@@ -413,7 +411,6 @@ update_redirected_method_stats(TSMBuffer
     else
       TSStatIncrement(method_count_redirected_unknown);
   }
-  TSHandleStringRelease(bufp, hdr_loc, txn_method);
 
   /* negative test */
 #ifdef DEBUG

Modified: trafficserver/traffic/trunk/test/plugin/write-server-ip/write-server-ip.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/test/plugin/write-server-ip/write-server-ip.c?rev=1041848&r1=1041847&r2=1041848&view=diff
==============================================================================
--- trafficserver/traffic/trunk/test/plugin/write-server-ip/write-server-ip.c (original)
+++ trafficserver/traffic/trunk/test/plugin/write-server-ip/write-server-ip.c Fri Dec  3 15:06:36
2010
@@ -109,7 +109,6 @@ handle_cache_hdr(TSHttpTxn txnp)
     /* concatenate the field to output_str */
     if (my_hdr) {
       snprintf(output_str, 1024, "%s MY_HDR(%d): %.*s \n", output_str, i, length, my_hdr);
-      TSHandleStringRelease(cache_bufp, field_loc, my_hdr);
     }
   }
 
@@ -242,16 +241,7 @@ Lcleanup:
   if (VALID_POINTER(r_method))
     TSfree(r_method);
 
-  /* negative test for TSHandleStringRelease */
-#ifdef DEBUG
-  if (TSHandleStringRelease(NULL, req_loc, request_method) != TS_ERROR) {
-    LOG_ERROR_NEG("TSHandleStringRelease");
-  }
-#endif
-
   /* release the buffer handles */
-  if (VALID_POINTER(request_method))
-    TSHandleStringRelease(req_bufp, req_loc, request_method);
   if (VALID_POINTER(req_loc))
     TSHandleMLocRelease(req_bufp, TS_NULL_MLOC, req_loc);
 



Mime
View raw message