Handling out of memory conditions in C | Hacker News Reader