[mythtv-commits] Ticket #3581: Fix 5 potential memory leaks

MythTV mythtv at cvs.mythtv.org
Fri Jun 8 04:34:27 UTC 2007


#3581: Fix 5 potential memory leaks
--------------------------------------------------------+-------------------
 Reporter:  Russell Bryant <russell at russellbryant.net>  |        Owner:  ijr    
     Type:  patch                                       |       Status:  closed 
 Priority:  minor                                       |    Milestone:  unknown
Component:  mythtv                                      |      Version:  unknown
 Severity:  medium                                      |   Resolution:  fixed  
--------------------------------------------------------+-------------------
Changes (by cpinkham):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 (In [13608]) Call pthread_attr_destroy() after we're done with the
 pthread_attr_t data
 that was created when we called pthread_attr_init().  Fixes up some memory
 leaks in a few places, most noticable in the backend where we create a new
 thread whenever you delete a recording file.

 I also removed the unnecessary attr used to set PTHREAD_CREATE_JOINABLE in
 NetworkControl, since the default is joinable, we don't need to explicitly
 set this attribute.

 Closes #3581 using slightly modified patch by Russell Bryant.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/3581#comment:2>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list