From: Alex Rousskov Date: Tue, 8 Feb 2011 01:50:19 +0000 (-0700) Subject: Do not reference destroyed diskless entries when they are released X-Git-Tag: take02~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=22c25cbbe6b5a6d3dc592e97ba2dd97983f67a27;p=thirdparty%2Fsquid.git Do not reference destroyed diskless entries when they are released during store rebuild. --- diff --git a/src/store.cc b/src/store.cc index 4c70ad6388..e21f77d1e5 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1265,11 +1265,13 @@ StoreEntry::release() lock_count++; setReleaseFlag(); LateReleaseStack.push_back(this); - PROF_stop(storeRelease); - return; } else { destroyStoreEntry(static_cast(this)); + // "this" is no longer valid } + + PROF_stop(storeRelease); + return; } storeLog(STORE_LOG_RELEASE, this);