-
Notifications
You must be signed in to change notification settings - Fork 526
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 memory leak in Redcarpet::Render::Base #516
Conversation
rb_redcarpet_rbase_alloc used to allocate a rb_redcarpet_rndr instance which was never freed. This caused 312 leaked bytes (on a 64-bit machine) on every render call!
👍 |
2 similar comments
👍 |
👍 |
Great job finding that leak 👍 |
The process of finding the leak is described in the blog post. |
Excellent work @be9 ! |
Fix memory leak in Redcarpet::Render::Base
Awesome work ! 👍 Thank you very much! ❤️ |
👏 👏 👏 👏 👏 |
@JuanitoFatas : Yeah, a new release should be cut today or tomorrow! :-) |
Thank you so much! 😉 |
Brilliant @be9. Great blog post too! |
See these links for more information: * vmg/redcarpet#516 * http://www.be9.io/2015/09/21/memory-leak/
👍 awesome article, thanks for the fix |
👍 this story is really great! ❤️ 👏 |
👍 Awesome blog post |
👍 |
Picking up vmg/redcarpet#516 (leaks ~300 bytes on every markdown render). (I believe this pushing this change is sufficient for heroku to update, but I'm not intimately familiar with heroku ruby deployments.)
Picking up vmg/redcarpet#516 (leaks ~300 bytes on every markdown render), which might help with codebar#322. (I believe this pushing this change is sufficient for heroku to update, but I'm not intimately familiar with heroku ruby deployments.)
Picking up vmg/redcarpet#516 (leaks ~300 bytes on every markdown render), which might help with #322. (I believe this pushing this change is sufficient for heroku to update, but I'm not intimately familiar with heroku ruby deployments.)
Just happened to stumble over the blog post you wrote @be9, a very good read indeed! 👍 Thanks for fixing this, and teaching us all an important lesson on how to debug the more tricky kinds of memory leaks... |
@be9 your post is awesome, thank you |
great blog post on troubleshooting memory leaks @be9 |
rb_redcarpet_rbase_alloc
used to allocate astruct rb_redcarpet_rndr
instancewhich was never freed.
This caused 312 leaked bytes (on a 64-bit machine) on every render call!