This is an automated email from the ASF dual-hosted git repository.
rob pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new ef30532de Fix reload memory leak (#9041)
ef30532de is described below
commit ef30532dea901a9e0196e771d66cf293d9ae68f1
Author: Robert O Butts <[email protected]>
AuthorDate: Thu Aug 18 12:49:22 2022 -0600
Fix reload memory leak (#9041)
---
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;
}
};