remove global mem leak

i found it mocha test