]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Use Mem::Init() to initialize for GetPool()
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 29 Mar 2016 07:58:21 +0000 (20:58 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 29 Mar 2016 07:58:21 +0000 (20:58 +1300)
src/mem/old_api.cc

index 3ef4419885a1b2a54f4759a02d33a58729df33d1..40c0d0b0af4cad60b2d6d49017f422b3aa8cef0e 100644 (file)
@@ -70,6 +70,9 @@ GetPool(size_t type)
     if (!initialized) {
         memset(pools, '\0', sizeof(pools));
         initialized = true;
+        // Mem::Init() makes use of GetPool(type) to initialize
+        // the actual pools. So must come after the flag is true
+        Mem::Init();
     }
 
     return pools[type];