21 Apr
2005
21 Apr
'05
4:50 p.m.
The cleanup_slots method called when threads exit appears to be leaking a tss_slots object. This causes a leak per thread that uses the thread specific storage. The following patch prevents this per thread memory leak. bryan diff -c -r1.1 tss.cpp *** boost_1_32_0/libs/thread/src/tss.cpp 8 Sep 2004 15:58:40 -0000 1.1 --- boost_1_32_0/libs/thread/src/tss.cpp 21 Apr 2005 00:15:15 -0000 *************** *** 56,61 **** --- 56,62 ---- (*tss_data->cleanup_handlers[i])((*slots)[i]); (*slots)[i] = 0; } + delete slots; } void init_tss_data()