trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iga...@apache.org
Subject svn commit: r1229719 - /trafficserver/traffic/trunk/proxy/InkAPI.cc
Date Tue, 10 Jan 2012 20:43:52 GMT
Author: igalic
Date: Tue Jan 10 20:43:51 2012
New Revision: 1229719

URL: http://svn.apache.org/viewvc?rev=1229719&view=rev
Log:
TS-1038: re igalic's complaint about r1228991
use ats_free_null() instead of if-block.

Modified:
    trafficserver/traffic/trunk/proxy/InkAPI.cc

Modified: trafficserver/traffic/trunk/proxy/InkAPI.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/InkAPI.cc?rev=1229719&r1=1229718&r2=1229719&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/InkAPI.cc (original)
+++ trafficserver/traffic/trunk/proxy/InkAPI.cc Tue Jan 10 20:43:51 2012
@@ -5378,10 +5378,7 @@ TSHttpTxnErrorBodySet(TSHttpTxn txnp, ch
   if (s->internal_msg_buffer)
     HttpTransact::free_internal_msg_buffer(s->internal_msg_buffer, s->internal_msg_buffer_fast_allocator_size);
 
-  if (s->internal_msg_buffer_type) {
-    ats_free(s->internal_msg_buffer_type);
-    s->internal_msg_buffer_type = NULL;
-  }
+  ats_free_null(s->internal_msg_buffer_type);
 
   s->internal_msg_buffer = buf;
   s->internal_msg_buffer_type = mimetype;



Mime
View raw message