Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Indeed, in typical C fashion all the created stubs must be freed manually.

Adding a GC is a separate task and several exist for C. Though if you were using C++, you could put together some RAII sugar or smart pointers around it all, but in that case you have std::bind1st and functors available anyway (although this is still the only way to meet the raw-pointer use case).



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

Search: