Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid memory leak and concurrency issues #157

Merged
merged 1 commit into from
Mar 12, 2022

Conversation

tripodsan
Copy link

fixes #156

  • moved global token to field (fixes memory leak)
  • moved global options to field (fixes reentrance problem when using several html differs with different options)

Copy link
Member

@UziTech UziTech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this! 💯

@UziTech UziTech merged commit b5f8c58 into markedjs:master Mar 12, 2022
github-actions bot pushed a commit that referenced this pull request Mar 12, 2022
## [4.0.1](v4.0.0...v4.0.1) (2022-03-12)

### Bug Fixes

* avoid memory leak and concurrency issues ([#157](#157)) ([b5f8c58](b5f8c58))
@github-actions
Copy link

🎉 This PR is included in version 4.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@tripodsan tripodsan deleted the fix-memory-leak branch March 12, 2022 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

global modifiedTokens cause memory leak
2 participants