Pointers and memory leaks in C | Hacker News Reader