You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by GitBox <gi...@apache.org> on 2020/07/25 20:31:49 UTC

[GitHub] [trafficserver] bneradt commented on a change in pull request #7041: Add checks to catch tunnel memory leaks

bneradt commented on a change in pull request #7041:
URL: https://github.com/apache/trafficserver/pull/7041#discussion_r460443871



##########
File path: proxy/http/HttpTunnel.cc
##########
@@ -525,6 +529,16 @@ HttpTunnel::alloc_consumer()
   return nullptr;
 }
 
+void
+HttpTunnel::assert_freed_buffers()
+{
+  for (auto &producer : producers) {

Review comment:
       I suggest `const auto&`.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org