From 9963536076c0740fb34b8eddb5e9cccb11822e06 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 2 Dec 2016 15:13:21 +1100 Subject: [PATCH] Fix memleak in reap_proxies for parent proxy not emptying its subproxy hashtable. --- src/stratifier.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stratifier.c b/src/stratifier.c index 6d7244af..d9a8bf03 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -2824,6 +2824,7 @@ static void reap_proxies(ckpool_t *ckp, sdata_t *sdata) /* Should we reap the parent proxy too?*/ if (!proxy->deleted || proxy->subproxy_count > 1 || proxy->bound_clients) continue; + HASH_DELETE(sh, proxy->subproxies, proxy); HASH_DELETE(hh, sdata->proxies, proxy); free_proxy(proxy); }