Opened 12 years ago
Closed 12 years ago
Last modified 12 years ago
#11669 closed Patch - Bug Fix (fixed)
Patch to free hdhomerun device memory after use - Fixes Coverity 700660 700661 700662
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | 0.27 |
Component: | MythTV - General | Version: | Master Head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
Static analysis detected a memory leak in cardutil.cpp after allocating a new hdhomerun_device, and it was not freed before returning.
This patch calls the hdhomerun_device_destroy function to free the storage.
It is possible that Coverity will not recognize the hdhomerun_device_destroy will free the memory, in which case one will need to manually acknowledge the Coverity issue. But the memory leak is real without the patch.
github ref: https://github.com/garybuhrmaster/mythtv/commit/ab1e04b6f50149ec81329d1e75846a5afdb0fd4e github git-am ref: https://github.com/garybuhrmaster/mythtv/commit/ab1e04b6f50149ec81329d1e75846a5afdb0fd4e.patch
In 3d649d55749fae4e8b534dc9e3565ec5dafe4004/mythtv: