From 196b5f2a13ff7d3366e83b92fa160c26379dfe72 Mon Sep 17 00:00:00 2001 From: Robert Butts Date: Tue, 16 Aug 2022 16:08:49 -0600 Subject: [PATCH] Fix reload memory leak --- iocore/cache/P_CacheHosting.h | 1 + 1 file changed, 1 insertion(+) diff --git a/iocore/cache/P_CacheHosting.h b/iocore/cache/P_CacheHosting.h index ba6fecd812d..00c8cb0cdb0 100644 --- a/iocore/cache/P_CacheHosting.h +++ b/iocore/cache/P_CacheHosting.h @@ -166,6 +166,7 @@ struct CacheHostTableConfig : public Continuation { CacheHostTable *t = new CacheHostTable((*ppt)->cache, (*ppt)->type); CacheHostTable *old = (CacheHostTable *)ink_atomic_swap(&t, *ppt); new_Deleter(old, CACHE_MEM_FREE_TIMEOUT); + delete this; return EVENT_DONE; } };