[mythtv-commits] Ticket #13438: Potential memory leak in RecorderBase::CheckForRingBufferSwitch
MythTV
noreply at mythtv.org
Wed Mar 27 09:39:15 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
--------------------------------------+-------------------------------
Comment (by David Hampton <mythtv@…>):
In [changeset:"3af3cad3d74735a561ab594910a3400b2472645c/mythtv"
3af3cad3d7/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="3af3cad3d74735a561ab594910a3400b2472645c"
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.
(cherry picked from commit e6a39281b112fb03ef2f804c13bc6ebe9d336c90)
}}}
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13438#comment:2>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list