]> git.sesse.net Git - stockfish/commit
Fix last leak detected by Valgrind
authorMarco Costalba <mcostalba@gmail.com>
Sun, 24 Oct 2010 08:39:33 +0000 (10:39 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 24 Oct 2010 08:57:30 +0000 (09:57 +0100)
commitf790752daacbb45c56cdabf1fd7c69eb06d98870
tree75b0ae639954bd63b635c65aaa694962f57d4c8f
parent5254ca22f3dcfa3bd1993d85e57d68ba1a4f4f34
Fix last leak detected by Valgrind

This was subtle and google was my friend.

The leak was in _dl_allocate_tls called by pthread_create() and
is due to the fact that threads are created in joinable state so that
once terminated are not freed. To make the thread to release
its resources upon termination we should set them in detached state.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp