Valgrind and pthread leakage

While testing the binaries with valgrind, which use the pthread library, the results usually contains several  possible leak sections, which are raised inside the pthread library.

Previously I have used the pthread_attr_set_detachstate function to start detached threads only. An additional pthread_detach could fix this:


Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Top WordPress Themes