I think I have my first memory leak.
My chatserver climbs all the time in memory usage, 0.1% more almost everytime "top" refreshes. After a few minutes I'm at around 10% (25 MB) even when I do nothing and there is no connection and it starts at 2%. This is a memory leak, right?
Any pointers what could cause memory leaks? My code is still small so it should be easy to find. I don't use any malloc().
Is there some good beginners tutorial about where to look for leaks?
I also noticed that my server has three threads running in top as soon as I start it. But I do only spawn one at the beginning and one for every new connection. So I would expect 2 + # of connections but it's 3 + # of connections. Is this usual?