Browse Source

Fix memleak in reap_proxies for parent proxy not emptying its subproxy hashtable.

master
Con Kolivas 8 years ago
parent
commit
9963536076
  1. 1
      src/stratifier.c

1
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);
}

Loading…
Cancel
Save