News for hackers. Stuff that matters.
Re:Show HN: Chan – pure C implementation of Go channels by pmahoney on Friday August 29, 2014 @07:33PM (#8245015)
The struct is currently storing a pointer to the mutex (which was allocated with malloc). The call to pthread_mutex_destroy does not free that memory.

Valgrind is your friend :)

http://valgrind.org/docs/manual/quick-start.html#quick-start...

There are no comments on this comment yet.