[mythtv-commits] Ticket #11669: Patch to free hdhomerun device memory after use - Fixes Coverity 700660 700661 700662

MythTV noreply at mythtv.org
Fri Jul 12 01:31:33 UTC 2013


#11669: Patch to free hdhomerun device memory after use - Fixes Coverity 700660
700661 700662
-------------------------------------------------+-------------------------
 Reporter:  Gary Buhrmaster <gary.buhrmaster@…>  |           Type:  Patch -
   Status:  new                                  |  Bug Fix
Milestone:  unknown                              |       Priority:  minor
  Version:  Master Head                          |      Component:  MythTV
 Keywords:                                       |  - General
                                                 |       Severity:  medium
                                                 |  Ticket locked:  0
-------------------------------------------------+-------------------------
 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

--
Ticket URL: <http://code.mythtv.org/trac/ticket/11669>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list