[mythtv-commits] Ticket #3552: Fix erroneous usage of free() instead of delete

MythTV mythtv at cvs.mythtv.org
Sun Jun 3 23:40:52 UTC 2007


#3552: Fix erroneous usage of free() instead of delete
--------------------------------------------------------+-------------------
 Reporter:  Russell Bryant <russell at russellbryant.net>  |       Owner:  ijr    
     Type:  patch                                       |      Status:  new    
 Priority:  minor                                       |   Milestone:  unknown
Component:  mythtv                                      |     Version:  unknown
 Severity:  medium                                      |  
--------------------------------------------------------+-------------------
 There are two arrays in libs/libmyth/jsmenu.cpp that were allocated with
 new, but get free'd using free() instead of delete.  The results of using
 free() on a buffer allocated with new are undefined.  The attached patch
 changes the two places in question to use delete, instead.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/3552>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list