From 032e7149c60e514d81140d2ddc531ed97a44b4be Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 3 Mar 2010 20:52:30 +0000 Subject: net.http: destroy_request(): Pass request.handler to disconnect() listener to fix small leak --- net/http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/http.lua b/net/http.lua index bd08bdad..09b04e61 100644 --- a/net/http.lua +++ b/net/http.lua @@ -213,7 +213,7 @@ end function destroy_request(request) if request.conn then request.handler.close() - listener.disconnect(request.conn, "closed"); + listener.disconnect(request.handler, "closed"); end end -- cgit v1.2.3