aboutsummaryrefslogtreecommitdiffstats
path: root/net/http.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-03-03 20:52:30 +0000
committerMatthew Wild <mwild1@gmail.com>2010-03-03 20:52:30 +0000
commit032e7149c60e514d81140d2ddc531ed97a44b4be (patch)
treeedc9790ad230c5e69446c513cb73103d10493cc3 /net/http.lua
parentead6371721b1d64f5dc7e3446222e002b3c2ced6 (diff)
downloadprosody-032e7149c60e514d81140d2ddc531ed97a44b4be.tar.gz
prosody-032e7149c60e514d81140d2ddc531ed97a44b4be.zip
net.http: destroy_request(): Pass request.handler to disconnect() listener to fix small leak
Diffstat (limited to 'net/http.lua')
-rw-r--r--net/http.lua2
1 files changed, 1 insertions, 1 deletions
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