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

Why not put each allocated pointer to a linked list and on cleanup pick each element and call free() ? Same approach can be used for files also.


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

Search: