Hacker News new | past | comments | ask | show | jobs | submit login

Ruby strings are mutable, so you need to be able to free s->data without freeing the RString itself.



    s = realloc(s, sizeof(RString));


MRI objects are not relocatable so that won't work if realloc has to move the structure in memory




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: