Fix more memory leaks

This commit is contained in:
Alex Hultman
2018-12-30 17:43:11 +01:00
parent 6618f7194b
commit 339e2d72dc
6 changed files with 40 additions and 0 deletions
+10
View File
@@ -38,6 +38,16 @@ private:
std::function<void(Loop *)> postHandler;
public:
~LoopData() {
/* If we have had App.ws called with compression we need to clear this */
if (zlibContext) {
delete zlibContext;
delete inflationStream;
delete deflationStream;
}
delete [] corkBuffer;
}
/* Good 16k for SSL perf. */
static const int CORK_BUFFER_SIZE = 16 * 1024;