Boost logo

Boost Users :

From: Bryan Tower (bryant_at_[hidden])
Date: 2005-04-21 11:50:30


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()


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net