• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Use ALLOC_N instead of malloc (wikitext, ebe7aea)

Created 2/6/2008, updated 3/5/2024
  • snippets

There was a lone malloc call in the parser which is best replaced with ALLOC_N (the latter will automatically invoke the Ruby garbage collector if allocation fails, and will raise an exception if allocation fails again after that).

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Add ary_clear method and use it (wikitext, 9b411a0)
Update strong and em specs (wikitext, 5d24e81) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).