Skip to content

Commit 4037603

Browse files
committed
🩹 mem-leak: patch winston #2453
1 parent 84f746b commit 4037603

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

patches/winston+3.3.3.patch

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/node_modules/winston/lib/winston/logger.js b/node_modules/winston/lib/winston/logger.js
2+
index 89dd4ac..612f235 100644
3+
--- a/node_modules/winston/lib/winston/logger.js
4+
+++ b/node_modules/winston/lib/winston/logger.js
5+
@@ -306,6 +306,7 @@ class Logger extends Transform {
6+
} catch (ex) {
7+
throw ex;
8+
} finally {
9+
+ this._writableState.sync = false;
10+
// eslint-disable-next-line callback-return
11+
callback();
12+
}

0 commit comments

Comments
 (0)