From: Alex Rousskov Date: Tue, 19 Apr 2011 22:40:17 +0000 (-0600) Subject: Do not leave a no-longer valid ThePagePool pointer behind the cleanup. X-Git-Tag: take06~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=282ee641fa903f492f5c88dcaefeb81309597a09;p=thirdparty%2Fsquid.git Do not leave a no-longer valid ThePagePool pointer behind the cleanup. --- diff --git a/src/ipc/mem/Pages.cc b/src/ipc/mem/Pages.cc index f341965f91..6ae8ed5901 100644 --- a/src/ipc/mem/Pages.cc +++ b/src/ipc/mem/Pages.cc @@ -105,6 +105,7 @@ void SharedMemPagesRr::run(const RunnerRegistry &) SharedMemPagesRr::~SharedMemPagesRr() { delete ThePagePool; + ThePagePool = NULL; if (IamMasterProcess()) Ipc::Mem::PagePool::Unlink(PagePoolId); }