Memory leak fix due to Issue #4390 in Node.js