Opened 6 years ago
Closed 6 years ago
Last modified 6 years ago
#13438 closed Bug Report - Memory Leak (fixed)
Potential memory leak in RecorderBase::CheckForRingBufferSwitch
Reported by: | David Hampton | Owned by: | David Hampton |
---|---|---|---|
Priority: | minor | Milestone: | 30.1 |
Component: | MythTV - Recording | Version: | Master Head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
At the end of the RecorderBase::CheckForRingBufferSwitch? function, m_tvrec->RingBufferChanged? is called with recq as an argument, and that function ends up freeing the memory pointed to by recq. Its theoretically possible to get to this point and have m_tvrec be a nullptr, in which case the function isn't called and recq isn't freed. The code needs to delete recq in that case.
Note: See
TracTickets for help on using
tickets.
In e6a39281b/mythtv: