You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2022/08/23 16:14:06 UTC
[trafficserver] 02/03: Fix reload memory leak (#9041)
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 959480ac4d615eda39741ca532777f3c0e1420e5
Author: Robert O Butts <ro...@users.noreply.github.com>
AuthorDate: Thu Aug 18 12:49:22 2022 -0600
Fix reload memory leak (#9041)
(cherry picked from commit ef30532dea901a9e0196e771d66cf293d9ae68f1)
---
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 ba6fecd81..00c8cb0cd 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;
}
};