summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-27 20:48:44 +0200
committermadmaxoft <github@xoft.cz>2013-09-27 20:48:44 +0200
commit8c57c5c1f22e54884100e0de1378e4522665a79c (patch)
tree2e190638c813162fc3bf380baa494922942c47a2
parentFixed parsing and implemented write nofitication. (diff)
downloadcuberite-8c57c5c1f22e54884100e0de1378e4522665a79c.tar
cuberite-8c57c5c1f22e54884100e0de1378e4522665a79c.tar.gz
cuberite-8c57c5c1f22e54884100e0de1378e4522665a79c.tar.bz2
cuberite-8c57c5c1f22e54884100e0de1378e4522665a79c.tar.lz
cuberite-8c57c5c1f22e54884100e0de1378e4522665a79c.tar.xz
cuberite-8c57c5c1f22e54884100e0de1378e4522665a79c.tar.zst
cuberite-8c57c5c1f22e54884100e0de1378e4522665a79c.zip
Diffstat (limited to '')
-rw-r--r--source/HTTPServer/HTTPConnection.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/HTTPServer/HTTPConnection.cpp b/source/HTTPServer/HTTPConnection.cpp
index 59fe8f878..2265d970f 100644
--- a/source/HTTPServer/HTTPConnection.cpp
+++ b/source/HTTPServer/HTTPConnection.cpp
@@ -129,6 +129,8 @@ void cHTTPConnection::DataReceived(const char * a_Data, int a_Size)
if (m_CurrentRequestBodyRemaining == 0)
{
m_HTTPServer.RequestFinished(*this, *m_CurrentRequest);
+ delete m_CurrentRequest;
+ m_CurrentRequest = NULL;
m_State = wcsRecvIdle;
}
break;