# HG changeset patch # User Matthew Wild # Date 1257104509 0 # Node ID b3a640892549751d24cc396664f7f2ac9c1b3bbd # Parent c384ae8ee17a45b99df725df1f4900943dfab2e0 net.httpserver: Pass correct connection object to disconnect listener, which fixes a small leak diff -r c384ae8ee17a -r b3a640892549 net/httpserver.lua --- a/net/httpserver.lua Sat Oct 31 17:15:20 2009 +0000 +++ b/net/httpserver.lua Sun Nov 01 19:41:49 2009 +0000 @@ -230,7 +230,7 @@ end request.handler.close() if request.conn then - listener.disconnect(request.conn, "closed"); + listener.disconnect(request.handler, "closed"); end end end