Opened 20 years ago
Closed 20 years ago
Last modified 19 years ago
#18 closed patch (fixed)
Fix memory leak in scheduler.cpp
| Reported by: | Owned by: | Isaac Richards | |
|---|---|---|---|
| Priority: | minor | Milestone: | unknown |
| Component: | mythtv | Version: | head |
| Severity: | low | Keywords: | |
| Cc: | Ticket locked: | no |
Description
scheduler.cpp appears to have a memory leak in getAllPending(QStringList &strList) - retList is allocated but never freed. The leak won't be obvious unless you're calling getAllPending fairly frequently (I have a monitoring script that calls it twice a minute). The attached patch fixes it for me. It was diff'd against CVS from 15/06 (I haven't moved to svn yet), although hopefully it will patch cleanly against current head.
Attachments (1)
Change History (2)
by , 20 years ago
| Attachment: | scheduler.diff added |
|---|
comment:1 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

(In [6725]) Simpler variation of the patch from neil @ mailbox.co.za. Fixes a leak in Scheduler::getAllPending.
Closes #18.