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...
Valgrind is your friend :)
http://valgrind.org/docs/manual/quick-start.html#quick-start...
No comments yet.