Fixing Weird Memory Leak within Simple phtreads Socket Server
Briefly

The simple server code that contains a bug creates a socket, binds this socket to localhost only and waits for incoming connections. Upon connection is accepted, the code creates a separate thread with pthread_create.
Using pthreads without proper thread management can lead to issues like server stops accepting new connections after some time.
Read at CodeProject
[
|
]