diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-03-03 20:52:30 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-03-03 20:52:30 +0000 |
commit | 032e7149c60e514d81140d2ddc531ed97a44b4be (patch) | |
tree | edc9790ad230c5e69446c513cb73103d10493cc3 | |
parent | ead6371721b1d64f5dc7e3446222e002b3c2ced6 (diff) | |
download | prosody-032e7149c60e514d81140d2ddc531ed97a44b4be.tar.gz prosody-032e7149c60e514d81140d2ddc531ed97a44b4be.zip |
net.http: destroy_request(): Pass request.handler to disconnect() listener to fix small leak
-rw-r--r-- | net/http.lua | 2 |
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 |