From 52f4cb6445d4f9f7b7891f05be47a60a8c220ed5 Mon Sep 17 00:00:00 2001 From: Mohammed Shah Date: Wed, 2 Feb 2022 15:09:40 +0000 Subject: [PATCH] Memory leak fix: do not wait `process.nextTick` Addresses the memory leak identified here: https://github.com/winstonjs/winston/issues/1871#issuecomment-1025490757 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 24c2d90..59e8421 100644 --- a/index.js +++ b/index.js @@ -102,7 +102,7 @@ TransportStream.prototype._write = function _write(info, enc, callback) { return this.log(transformed, callback); } - + this._writableState.sync = false; return callback(null); };