diff src/http/modules/ngx_http_upstream_least_conn_module.c @ 5133:089a662c17d1

Upstream: removed double-free workarounds in peer.free() methods.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 25 Mar 2013 13:16:55 +0000
parents a384c60d55f3
children 5373be93c0be
line wrap: on
line diff
--- a/src/http/modules/ngx_http_upstream_least_conn_module.c
+++ b/src/http/modules/ngx_http_upstream_least_conn_module.c
@@ -353,10 +353,6 @@ ngx_http_upstream_free_least_conn_peer(n
         return;
     }
 
-    if (state == 0 && pc->tries == 0) {
-        return;
-    }
-
     lcp->conns[lcp->rrp.current]--;
 
     lcp->free_rr_peer(pc, &lcp->rrp, state);