[mythtv-commits] Ticket #13438: Potential memory leak in RecorderBase::CheckForRingBufferSwitch

MythTV noreply at mythtv.org
Tue Mar 26 16:09:19 UTC 2019


#13438: Potential memory leak in RecorderBase::CheckForRingBufferSwitch
--------------------------------------+-------------------------------
 Reporter:  David Hampton             |          Owner:  David Hampton
     Type:  Bug Report - Memory Leak  |         Status:  closed
 Priority:  minor                     |      Milestone:  30.1
Component:  MythTV - Recording        |        Version:  Master Head
 Severity:  medium                    |     Resolution:  fixed
 Keywords:                            |  Ticket locked:  0
--------------------------------------+-------------------------------
Changes (by David Hampton <mythtv@…>):

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


Comment:

 In [changeset:"e6a39281b112fb03ef2f804c13bc6ebe9d336c90/mythtv"
 e6a39281b/mythtv]:
 {{{
 #!CommitTicketReference repository="mythtv"
 revision="e6a39281b112fb03ef2f804c13bc6ebe9d336c90"
 tidy: Fix memory leak in HLSSegment::DecodeData.

 The clang-tidy "memory leak" checker pointed out that the
 RecorderBase::CheckForRingBufferSwitch function would leak the memory
 pointed to by the 'recq' variable if the 'm_tvrec' variable contains
 nullptr.  Add a line to free the memory pointed to by the 'recq'
 variable in this case.

 Fixes #13438.
 }}}

-- 
Ticket URL: <https://code.mythtv.org/trac/ticket/13438#comment:1>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list