From: Amos Jeffries Date: Tue, 29 Mar 2016 07:58:21 +0000 (+1300) Subject: Use Mem::Init() to initialize for GetPool() X-Git-Tag: SQUID_4_0_8~7^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3b1439d03a1e603521ad95474483002238762eb2;p=thirdparty%2Fsquid.git Use Mem::Init() to initialize for GetPool() --- diff --git a/src/mem/old_api.cc b/src/mem/old_api.cc index 3ef4419885..40c0d0b0af 100644 --- a/src/mem/old_api.cc +++ b/src/mem/old_api.cc @@ -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];