This is an automated email from the ASF dual-hosted git repository.

jacksontj pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  e707c3e   TS-4608: Fix memory leak in ProxyAllocator.cc. (#774)
e707c3e is described below

commit e707c3ec02d71ae079db9282c825d0449f62a88c
Author: Jay Ramamurthi <[email protected]>
AuthorDate: Thu Jun 30 13:28:58 2016 -0700

    TS-4608: Fix memory leak in ProxyAllocator.cc. (#774)
    
    This removes the pre-processor flag TS_USE_FREELIST which is not defined 
since commit e56d1f9eb6f55b0257d1fb758b773dea468159ee to make freelists a 
runtime option.
---
 iocore/eventsystem/ProxyAllocator.cc | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/iocore/eventsystem/ProxyAllocator.cc 
b/iocore/eventsystem/ProxyAllocator.cc
index ad5bc63..e91aaab 100644
--- a/iocore/eventsystem/ProxyAllocator.cc
+++ b/iocore/eventsystem/ProxyAllocator.cc
@@ -28,16 +28,12 @@ int thread_freelist_low_watermark  = 32;
 void *
 thread_alloc(Allocator &a, ProxyAllocator &l)
 {
-#if TS_USE_FREELIST
   if (l.freelist) {
     void *v    = (void *)l.freelist;
     l.freelist = *(void **)l.freelist;
     --(l.allocated);
     return v;
   }
-#else
-  (void)l;
-#endif
   return a.alloc_void();
 }
 

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to