Skip to content

Fix memory leak in Redcarpet::Render::Base#516

Merged
robin850 merged 1 commit intovmg:masterfrom
be9:master
Sep 23, 2015
Merged

Fix memory leak in Redcarpet::Render::Base#516
robin850 merged 1 commit intovmg:masterfrom
be9:master

Conversation

@be9
Copy link
Copy Markdown
Contributor

@be9 be9 commented Sep 11, 2015

rb_redcarpet_rbase_alloc used to allocate a struct rb_redcarpet_rndr instance
which was never freed.

This caused 312 leaked bytes (on a 64-bit machine) on every render call!

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!
@recurser
Copy link
Copy Markdown

👍

2 similar comments
@k41n
Copy link
Copy Markdown

k41n commented Sep 12, 2015

👍

@avokhmin
Copy link
Copy Markdown

👍

@romansklenar
Copy link
Copy Markdown

Great job finding that leak 👍

@be9
Copy link
Copy Markdown
Contributor Author

be9 commented Sep 23, 2015

The process of finding the leak is described in the blog post.

@SamSaffron
Copy link
Copy Markdown
Contributor

Excellent work @be9 !

robin850 added a commit that referenced this pull request Sep 23, 2015
Fix memory leak in Redcarpet::Render::Base
@robin850 robin850 merged commit 2d09839 into vmg:master Sep 23, 2015
@robin850
Copy link
Copy Markdown
Collaborator

Awesome work ! 👍 Thank you very much! ❤️

@JuanitoFatas
Copy link
Copy Markdown

Thanks! @be9 👏

@robin850 Will you cut a new release 🙇 ?

@tom-lord
Copy link
Copy Markdown

👏 👏 👏 👏 👏

robin850 added a commit that referenced this pull request Sep 23, 2015
@robin850
Copy link
Copy Markdown
Collaborator

@JuanitoFatas : Yeah, a new release should be cut today or tomorrow! :-)

@JuanitoFatas
Copy link
Copy Markdown

@JuanitoFatas : Yeah, a new release should be cut today or tomorrow! :-)

Thank you so much! 😉

@monkbroc
Copy link
Copy Markdown

Brilliant @be9. Great blog post too!

n00dle added a commit to n00dle/text-helpers that referenced this pull request Sep 24, 2015
@Davidslv
Copy link
Copy Markdown
Contributor

👍 awesome article, thanks for the fix

@dmitrytrager
Copy link
Copy Markdown

👍 this story is really great! ❤️ 👏

@franciscomxs
Copy link
Copy Markdown

👍 Awesome blog post

timhabermaas added a commit to timhabermaas/worldcubeassociation.org that referenced this pull request Oct 20, 2015
@vumanhcuongit
Copy link
Copy Markdown

👍

asuffield added a commit to asuffield/planner that referenced this pull request Nov 22, 2015
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.)
asuffield added a commit to asuffield/planner that referenced this pull request Nov 22, 2015
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.)
wjordan added a commit to code-dot-org/code-dot-org that referenced this pull request Jan 14, 2016
deniseyu pushed a commit to codebar/planner that referenced this pull request Jan 20, 2016
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.)
@perlun
Copy link
Copy Markdown

perlun commented Aug 23, 2017

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...

@ArthurAzrieli
Copy link
Copy Markdown

@be9 your post is awesome, thank you

@lizdenhup
Copy link
Copy Markdown

great blog post on troubleshooting memory leaks @be9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.